use run-parts
This commit is contained in:
parent
f8e447a4b8
commit
096bb37f05
1 changed files with 1 additions and 3 deletions
4
push.sh
4
push.sh
|
@ -13,9 +13,7 @@ while true; do
|
|||
read state < "$DEV"
|
||||
case "$state" in
|
||||
ON|HALF|OFF)
|
||||
for f in $(find -O3 -P "$DIR" -type f -executable | sort -n); do
|
||||
"$f" "$state" || echo "File $f exited with error $?"
|
||||
done
|
||||
run-parts --arg="$state" "$DIR"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
|
|
Reference in a new issue