diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index d7f6887..2161df7 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -7,13 +7,6 @@ echo "<< 99_deploy.sh >>" user=poq clone_trg=/tmp -targz_dots_url=https://git.mz.fo/fro/lnx-arch/archive/master.tar.gz -dots_trg=${clone_trg}/lnx-arch/dots - -targz_dotsplus_url=https://gitlab.com/pqq/dotsplus/-/archive/main/dotsplus-main.tar.gz -dotsplus_trg=${clone_trg}/dotsplus-main/wp - - if [ "$EUID" -ne 0 ] then echo "error: run as 'root'" exit @@ -107,6 +100,10 @@ firefox_profile_dir() { # dots (dot files) if [ ${operation} == "dots" ] ; then + # declarations + targz_dots_url=https://git.mz.fo/fro/lnx-arch/archive/master.tar.gz + dots_trg=${clone_trg}/lnx-arch/dots + echo "***** ${operation} *****" rm -rf ${clone_trg}/lnx-arch download_repo ${targz_dots_url} @@ -182,15 +179,18 @@ fi # dots+ (wallpapers, fonts ++) if [ ${operation} == "dots+" ] ; then + # declarations + targz_dotsplus_url=https://gitlab.com/pqq/dotsplus/-/archive/main/dotsplus-main.tar.gz + dotsplus_trg=${clone_trg}/dotsplus-main + echo "***** ${operation} *****" - rm -rf ${clone_trg}/dotsplus-main + rm -rf ${dotsplus_trg} download_repo ${targz_dotsplus_url} - tree ${clone_trg}/dotsplus-main + tree ${clone_trg} # ---------- # fonts # ---------- - file_path=/home/${user}/.local/share/fonts mkdir -p ${file_path} deploy_file "${dotsplus_trg}/fonts/install/*" "${file_path}/" @@ -198,7 +198,6 @@ if [ ${operation} == "dots+" ] ; then # ---------- # wallpapers # ---------- - deploy_file "${dotsplus_trg}/wallpapers/install*" "/home/${user}/.config/hypr/" fi