aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-04-16 03:46:47 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-04-16 03:46:47 +0300
commita6d2aa25a8cc9bae8379afdf1301095505369848 (patch)
tree82028a537980576b6babf2966852620ea8f1aa8c
parentbugfix (diff)
downloadconfig-links-a6d2aa25a8cc9bae8379afdf1301095505369848.tar.gz
config-links-a6d2aa25a8cc9bae8379afdf1301095505369848.zip
usage message update
-rwxr-xr-xupdate.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/update.sh b/update.sh
index 737510c..f6684fe 100755
--- a/update.sh
+++ b/update.sh
@@ -45,7 +45,8 @@ check_symlinks_enabled_cygwin() {
# Utility routines
-readonly script_argv0="$( printf -- '%q' "${BASH_SOURCE[0]}" )"
+script_name="$( basename -- "${BASH_SOURCE[0]}" )"
+readonly script_name
dump() {
local prefix="${FUNCNAME[0]}"
@@ -393,9 +394,7 @@ exit_with_usage() {
local msg
IFS= read -d '' -r msg <<MSG || echo -n "$msg" >&"$destfd" || true
-usage: $script_argv0 [-h|--help] [-d|--database PATH] [-s|--shared-dir DIR] [-n|--dry-run]
-
-parameters:
+usage: $script_name [-h|--help] [-d|--database PATH] [-s|--shared-dir DIR] [-n|--dry-run]
-h,--help show this message and exit
-d,--database set database file path
-s,--shared-dir set top-level shared directory path