forked from Shinonome/dots-hyprland
Integrate update script into install.sh
This commit is contained in:
@@ -15,6 +15,10 @@ set -e
|
|||||||
source ./sdata/exp/uninstall.sh
|
source ./sdata/exp/uninstall.sh
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
if [[ "${EXPERIMENTAL_UPDATE_SCRIPT}" = true ]]; then
|
||||||
|
source ./sdata/exp/update.sh
|
||||||
|
exit
|
||||||
|
fi
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
# 0. Before we start
|
# 0. Before we start
|
||||||
if [[ "${SKIP_ALLGREETING}" != true ]]; then
|
if [[ "${SKIP_ALLGREETING}" != true ]]; then
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ If no option is specified, run default install process.
|
|||||||
--fontset <set> (Unavailable yet) Use a set of pre-defined font and config
|
--fontset <set> (Unavailable yet) Use a set of pre-defined font and config
|
||||||
--via-nix (Unavailable yet) Use Nix to install dependencies
|
--via-nix (Unavailable yet) Use Nix to install dependencies
|
||||||
--exp-uninstall Use experimental uninstall script
|
--exp-uninstall Use experimental uninstall script
|
||||||
|
--exp-update Use experimental update script
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,7 +37,7 @@ cleancache(){
|
|||||||
# `man getopt` to see more
|
# `man getopt` to see more
|
||||||
para=$(getopt \
|
para=$(getopt \
|
||||||
-o hfk:cs \
|
-o hfk:cs \
|
||||||
-l help,force,fontset:,clean,skip-allgreeting,skip-alldeps,skip-allsetups,skip-allfiles,skip-sysupdate,skip-fish,skip-hyprland,skip-plasmaintg,skip-miscconf,exp-files,via-nix,exp-uninstall \
|
-l help,force,fontset:,clean,skip-allgreeting,skip-alldeps,skip-allsetups,skip-allfiles,skip-sysupdate,skip-fish,skip-hyprland,skip-plasmaintg,skip-miscconf,exp-files,via-nix,exp-uninstall,exp-update \
|
||||||
-n "$0" -- "$@")
|
-n "$0" -- "$@")
|
||||||
[ $? != 0 ] && echo "$0: Error when getopt, please recheck parameters." && exit 1
|
[ $? != 0 ] && echo "$0: Error when getopt, please recheck parameters." && exit 1
|
||||||
#####################################################################################
|
#####################################################################################
|
||||||
@@ -73,6 +74,7 @@ while true ; do
|
|||||||
--exp-files) EXPERIMENTAL_FILES_SCRIPT=true;shift;;
|
--exp-files) EXPERIMENTAL_FILES_SCRIPT=true;shift;;
|
||||||
--via-nix) INSTALL_VIA_NIX=true;shift;;
|
--via-nix) INSTALL_VIA_NIX=true;shift;;
|
||||||
--exp-uninstall) EXPERIMENTAL_UNINSTALL_SCRIPT=true;shift;;
|
--exp-uninstall) EXPERIMENTAL_UNINSTALL_SCRIPT=true;shift;;
|
||||||
|
--exp-update) EXPERIMENTAL_UPDATE_SCRIPT=true;shift;;
|
||||||
## Ones with parameter
|
## Ones with parameter
|
||||||
|
|
||||||
--fontset)
|
--fontset)
|
||||||
|
|||||||
Reference in New Issue
Block a user