mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 22:51:54 -05:00
randomWallpaper: use [[]] instead of []
This commit is contained in:
parent
2c968598b7
commit
c7a02e12ec
|
@ -44,7 +44,7 @@
|
||||||
NEW_PIDS+=($!)
|
NEW_PIDS+=($!)
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ ''${OLD_PIDS[@]} -gt 0 ]; then
|
if [[ ''${OLD_PIDS[@]} -gt 0 ]]; then
|
||||||
sleep 5
|
sleep 5
|
||||||
for pid in ''${OLD_PIDS[@]}; do
|
for pid in ''${OLD_PIDS[@]}; do
|
||||||
kill $pid
|
kill $pid
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
NEW_PIDS+=($!)
|
NEW_PIDS+=($!)
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ ''${OLD_PIDS[@]} -gt 0 ]; then
|
if [[ ''${OLD_PIDS[@]} -gt 0 ]]; then
|
||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue