From cbd59f360fc1f61d264c35e0ee7b547c70c49a99 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 9 Oct 2016 00:28:15 +0300 Subject: -s|--source -> -c|--config-dir --- README.md | 4 ++-- update.sh | 17 +++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6d22e81..9e025df 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,9 @@ Default database file name is "db.bin". Usage ----- - usage: update.sh [-d|--database PATH] [-s|--source DIR] [-n|--dry-run] [-h|--help] + usage: update.sh [-d|--database PATH] [-c|--config-dir DIR] [-n|--dry-run] [-h|--help] -To update the symlinks, run `./update.sh -d test.bin -s test`, substituting the +To update the symlinks, run `./update.sh -d test.bin -c test`, substituting the database file name for `test.bin` and directory path for `test`. Requires Cygwin. diff --git a/update.sh b/update.sh index 42a0f7e..08f0465 100644 --- a/update.sh +++ b/update.sh @@ -17,7 +17,7 @@ # `CYGWIN` Windows environment variable value **must** include either # `winsymlinks:native` or `winsymlinks:nativestrict`! -# usage: ./update.sh [-d|--database PATH] [-s|--source DIR] [-n|--dry-run] [-h|--help] +# usage: ./update.sh [-d|--database PATH] [-c|--config-dir DIR] [-n|--dry-run] [-h|--help] set -o errexit set -o nounset @@ -261,12 +261,13 @@ discover_new_entries() { exit_with_usage() { local msg IFS= read -d '' -r msg <