Pass parameters over to cmd, e.g.:

xsidle.sh ls -l /usr

Signed-off-by: Christoph Lohmann <20h@r-36.net>
master
Phil Pirozhkov 2014-10-11 11:42:47 +04:00 committed by Christoph Lohmann
parent cd05e2ae0c
commit f58232beb2
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ then
printf "usage: %s cmd\n" "$(basename $0)" 2>&1 printf "usage: %s cmd\n" "$(basename $0)" 2>&1
exit 1 exit 1
fi fi
cmd="$1" cmd="$@"
while true while true
do do