Fix: address shellcheck warnings/errors in example scripts
[lttng-ust.git] / doc / examples / demo / demo-trace
index dd677277b7a4c6a248b3d94671bf834e963490c4..000139b8a4ec0d48a05ed9051a69d4929751b99e 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-DIR=$(dirname $0)
-DIR=$(readlink -f $DIR)
+DIR=$(dirname "$0")
+DIR=$(readlink -f "$DIR")
 
-LD_PRELOAD=$DIR/lttng-ust-provider-ust-tests-demo.so:$DIR/lttng-ust-provider-ust-tests-demo3.so $DIR/demo ${*}
+LD_PRELOAD="$DIR/lttng-ust-provider-ust-tests-demo.so:$DIR/lttng-ust-provider-ust-tests-demo3.so" "$DIR/demo" "${@}"
This page took 0.022712 seconds and 4 git commands to generate.