Skip to content

Commit

Permalink
escape env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Passerino committed Dec 11, 2024
1 parent e83d5e3 commit 1fb00f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ print_help() {
echo " - run 'pip3 install pandas numpy matplotlib' to install dependencies"
echo
echo "Example:"
echo " sudo env LD_LIBRARY_PATH=$LD_LIBRARY_PATH $0 10 Run benchmarks with TEST_DURATION=10 seconds."
echo " sudo env LD_LIBRARY_PATH=\$LD_LIBRARY_PATH $0 10 Run benchmarks with TEST_DURATION=10 seconds."
echo
echo "Needed because sudo resets LD_LIBRARY_PATH, breaking shared library access."
echo
Expand All @@ -42,7 +42,7 @@ fi
# Check if the script is run as root
if [[ $EUID -ne 0 ]]; then
echo "You must run this script with sudo or as root."
echo "Usage: sudo env LD_LIBRARY_PATH=$LD_LIBRARY_PATH $0 [arguments]"
echo "Usage: sudo env LD_LIBRARY_PATH=\$LD_LIBRARY_PATH $0 [arguments]"
exit 1
fi

Expand Down

0 comments on commit 1fb00f4

Please sign in to comment.