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 d9fdf5c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ print_help() {
echo " 3. Parsing includes: (Uses python3 & dependencies)"
echo " - Comparing CPU and memory usage (compare_cpu_memory.py)."
echo " - Comparing latency metrics (compare_latency.py)."
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 +41,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 Expand Up @@ -109,3 +108,4 @@ echo " python3 parse-results/compare_cpu_memory.py $results_dir --plot"
echo " python3 parse-results/compare_latency.py $results_dir --plot"
echo
echo "Remove --plot if no plot is needed."
echo "If not already done, run 'pip3 install pandas numpy matplotlib' to install dependencies"

0 comments on commit d9fdf5c

Please sign in to comment.