make POSIX sh compliant

This commit is contained in:
2025-12-18 14:12:29 -08:00
parent 1f48d9808c
commit cdae221acf
11 changed files with 63 additions and 20 deletions

7
bin/sync_music Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
rsync -aP $HOME/wdraidz/media/music/ $HOME/music/ > $HOME/.sync_log && SUCCESS=1
if [ $SUCCESS = 1 ]; then
notify-send "sync complete; logged to $HOME/.sync_log" -i :
else
notify-send "sync error..." -i :
fi