forked from Shinonome/dots-hyprland
bound
This commit is contained in:
@@ -10,6 +10,7 @@ Merges upstream changes with your quickshell config.
|
|||||||
Options:
|
Options:
|
||||||
-n, --dry-run Show what would be done
|
-n, --dry-run Show what would be done
|
||||||
-h, --help Show this help
|
-h, --help Show this help
|
||||||
|
-s, --skip-notice Skip notice about script being experimental
|
||||||
--skip-fetch Skip fetching from remote
|
--skip-fetch Skip fetching from remote
|
||||||
|
|
||||||
How it works:
|
How it works:
|
||||||
@@ -25,8 +26,8 @@ How it works:
|
|||||||
}
|
}
|
||||||
|
|
||||||
para=$(getopt \
|
para=$(getopt \
|
||||||
-o hn \
|
-o hns \
|
||||||
-l help,dry-run,skip-fetch \
|
-l help,dry-run,skip-notice,skip-fetch \
|
||||||
-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
|
||||||
|
|
||||||
@@ -41,6 +42,7 @@ done
|
|||||||
|
|
||||||
DRY_RUN=false
|
DRY_RUN=false
|
||||||
SKIP_FETCH=false
|
SKIP_FETCH=false
|
||||||
|
SKIP_NOTICE=false
|
||||||
|
|
||||||
eval set -- "$para"
|
eval set -- "$para"
|
||||||
while true ; do
|
while true ; do
|
||||||
@@ -48,6 +50,9 @@ while true ; do
|
|||||||
-n|--dry-run) DRY_RUN=true;shift
|
-n|--dry-run) DRY_RUN=true;shift
|
||||||
log_info "Dry-run mode enabled - no changes will be made"
|
log_info "Dry-run mode enabled - no changes will be made"
|
||||||
;;
|
;;
|
||||||
|
-s|--skip-notice) SKIP_NOTICE=true;shift
|
||||||
|
log_warning "Skipping notice about script being experimental"
|
||||||
|
;;
|
||||||
--skip-fetch) SKIP_FETCH=true;shift
|
--skip-fetch) SKIP_FETCH=true;shift
|
||||||
log_info "Skipping fetch from remote"
|
log_info "Skipping fetch from remote"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user