commit f58232beb295b70a15a93c75414781a80fe542cd Author: Phil Pirozhkov <[email protected]> Date: Sat Oct 11 11:42:47 2014 +0400
Pass parameters over to cmd, e.g.:
xsidle.sh ls -l /usr
Signed-off-by: Christoph Lohmann <[email protected]>
diff --git a/xsidle.sh b/xsidle.sh
index 35278bc..cc3b2a4 100755
--- a/xsidle.sh
+++ b/xsidle.sh
@@ -8,7 +8,7 @@ then
printf "usage: %s cmd\n" "$(basename $0)" 2>&1
exit 1
fi
-cmd="$1"
+cmd="$@"
while true
do
