+ wp (wallpaper) support

This commit is contained in:
tuxwarrior
2024-04-30 20:41:12 -05:00
parent fb954b8fa3
commit b892d1ec35
2 changed files with 24 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ fi
this_file_name=`basename "$0"`
if [ $# -lt 1 ]; then
echo "usage: '$this_file_name { dots | uf / upd-full [host] | sw / software [host] | us / upd-self }'"
echo "usage: '$this_file_name { dots | uf / upd-full [host] | sw / software [host] | us / upd-self | wp }'"
exit 1
fi
@@ -41,7 +41,7 @@ parameter_2=$3
shopt -s extglob
case $operation in
!(dots|uf|upd-full|sw|software|us|upd-self))
!(dots|uf|upd-full|sw|software|us|upd-self|wp))
echo "error: unknown operation '$operation'"
exit
;;
@@ -147,6 +147,16 @@ if [ $operation == "uf" ] || [ $operation == "upd-full" ] ; then
fi
shopt -u extglob
# update wallpapers
shopt -s extglob
if [ $operation == "wp" ] ; then
execute_script 99_download.sh wp
fi
shopt -u extglob
# update and rebuild (all) without hostname
#shopt -s extglob
#if [ $operation == "ur" ] || [ $operation == "upd-rebuild" ] ; then