commit 65b17e318393e3173b5275246de8d647acfa5e83 parent c695588d6845ca549ccdbb851a2517a0c12122d5 Author: mrgrouse <bdmfegys@duck.com> Date: Fri, 17 May 2024 22:16:30 -0400 wall.sh: utilize XDG directories and create XDG_PICTURES variable if it doesn't exist Diffstat:
| M | wall.sh | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/wall.sh b/wall.sh @@ -1,10 +1,11 @@ #!/bin/sh +[ -z "$XDG_PICTURES" ] && XDG_PICTURES=$HOME/Pictures case $1 in push) - rsync -urv $HOME/Pictures/ mrgrouse.com:Pictures + rsync -urv $XDG_PICTURES/ mrgrouse.com:Pictures ;; pull) - rsync -urv mrgrouse.com:Pictures/ $HOME/Pictures + rsync -urv mrgrouse.com:Pictures/ $XDG_PICTURES ;; *) echo "Not a real argument :clown_face:"