aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/links-update
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-01-06 17:31:48 +0000
committerEgor Tensin <Egor.Tensin@gmail.com>2022-01-06 17:31:48 +0000
commit1b0e7de26eac6cee94dc1c15c8fb91e6a925bd2d (patch)
tree50781b37ab78421cb2aba62703a4fd019207e8bf /links-update
parentdebian: 1.1-2 (diff)
parentlinks-chmod: mode parameter is mandatory (diff)
downloadconfig-links-1b0e7de26eac6cee94dc1c15c8fb91e6a925bd2d.tar.gz
config-links-1b0e7de26eac6cee94dc1c15c8fb91e6a925bd2d.zip
Merge tag 'v2.0' into debian
Diffstat (limited to 'links-update')
-rwxr-xr-xlinks-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/links-update b/links-update
index 1e1c829..6a802bc 100755
--- a/links-update
+++ b/links-update
@@ -32,8 +32,6 @@ readonly script_dir
src_dir="$( cd -- "$script_dir/src" && pwd )"
readonly src_dir
-mode=''
-
. "$src_dir/common.sh"
. "$src_dir/os.sh"
. "$src_dir/path.sh"
@@ -93,7 +91,7 @@ parse_script_options() {
update_shared_dir "$value"
;;
-m|--mode)
- mode="$value"
+ mode="$( parse_mode "$value" )"
;;
*)
script_usage "unrecognized parameter: $key" >&2
@@ -103,6 +101,8 @@ parse_script_options() {
done
}
+mode=''
+
main() {
parse_script_options "$@"
check_symlinks_enabled