forked from Shinonome/dots-hyprland
Fix -s for exp-update
This commit is contained in:
@@ -8,7 +8,7 @@ Options:
|
|||||||
-f, --force Force check all files even if no new commits
|
-f, --force Force check all files even if no new commits
|
||||||
-p, --packages Enable package checking and building
|
-p, --packages Enable package checking and building
|
||||||
-h, --help Show this help message
|
-h, --help Show this help message
|
||||||
--skip-notice Skip the notice message at the beginning
|
-s, --skip-notice Skip the notice message at the beginning
|
||||||
|
|
||||||
It updates your dotfiles by:
|
It updates your dotfiles by:
|
||||||
1. Pulling latest changes from git remote
|
1. Pulling latest changes from git remote
|
||||||
@@ -24,7 +24,7 @@ Package modes (when -p is used):
|
|||||||
}
|
}
|
||||||
# `man getopt` to see more
|
# `man getopt` to see more
|
||||||
para=$(getopt \
|
para=$(getopt \
|
||||||
-o hfp \
|
-o hfps \
|
||||||
-l help,force,packages,skip-notice \
|
-l help,force,packages,skip-notice \
|
||||||
-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
|
||||||
@@ -56,7 +56,7 @@ while true ; do
|
|||||||
-p|--packages) CHECK_PACKAGES=true;shift
|
-p|--packages) CHECK_PACKAGES=true;shift
|
||||||
log_info "Package checking enabled"
|
log_info "Package checking enabled"
|
||||||
;;
|
;;
|
||||||
--skip-notice) SKIP_NOTICE=true;shift
|
-s|--skip-notice) SKIP_NOTICE=true;shift
|
||||||
log_warning "Skipping notice about script being untested"
|
log_warning "Skipping notice about script being untested"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
@@ -8,13 +8,14 @@ Experimental updating without full reinstall.
|
|||||||
Updates dotfiles by syncing configuration files to home directory.
|
Updates dotfiles by syncing configuration files to home directory.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-f, --force Force check all files even if no new commits
|
-f, --force Force check all files even if no new commits
|
||||||
-p, --packages Enable package checking and building
|
-p, --packages Enable package checking and building
|
||||||
-n, --dry-run Show what would be done without making changes
|
-n, --dry-run Show what would be done without making changes
|
||||||
-v, --verbose Enable verbose output
|
-v, --verbose Enable verbose output
|
||||||
-h, --help Show this help message
|
-h, --help Show this help message
|
||||||
-s, --skip-notice Skip notice about script being untested
|
-s, --skip-notice Skip notice about script being untested
|
||||||
--non-interactive Run without prompting for user input
|
--non-interactive
|
||||||
|
Run without prompting for user input
|
||||||
|
|
||||||
This script updates your dotfiles by:
|
This script updates your dotfiles by:
|
||||||
1. Auto-detecting repository structure (dots/ prefix or direct)
|
1. Auto-detecting repository structure (dots/ prefix or direct)
|
||||||
@@ -33,7 +34,7 @@ Ignore file patterns support:
|
|||||||
}
|
}
|
||||||
# `man getopt` to see more
|
# `man getopt` to see more
|
||||||
para=$(getopt \
|
para=$(getopt \
|
||||||
-o hfpnv \
|
-o hfpnvs \
|
||||||
-l help,force,packages,dry-run,verbose,skip-notice,non-interactive \
|
-l help,force,packages,dry-run,verbose,skip-notice,non-interactive \
|
||||||
-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
|
||||||
@@ -74,7 +75,7 @@ while true ; do
|
|||||||
-v|--verbose) VERBOSE=true;shift
|
-v|--verbose) VERBOSE=true;shift
|
||||||
log_info "Verbose mode enabled"
|
log_info "Verbose mode enabled"
|
||||||
;;
|
;;
|
||||||
--skip-notice) SKIP_NOTICE=true;shift
|
-s|--skip-notice) SKIP_NOTICE=true;shift
|
||||||
log_warning "Skipping notice about script being untested"
|
log_warning "Skipping notice about script being untested"
|
||||||
;;
|
;;
|
||||||
--non-interactive) NON_INTERACTIVE=true;shift
|
--non-interactive) NON_INTERACTIVE=true;shift
|
||||||
|
|||||||
Reference in New Issue
Block a user