|
|
@ -473,14 +473,6 @@ args+=("$@") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ############# ############# ############# |
|
|
|
|
|
|
|
# ## TIME TO RUN THE SCRIPT ## |
|
|
|
|
|
|
|
# ## ## |
|
|
|
|
|
|
|
# ## You shouldn't need to edit anything ## |
|
|
|
|
|
|
|
# ## beneath this line ## |
|
|
|
|
|
|
|
# ## ## |
|
|
|
|
|
|
|
# ############# ############# ############# |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Exit on error. Append '||true' when you run the script if you expect an error. |
|
|
|
# Exit on error. Append '||true' when you run the script if you expect an error. |
|
|
|
set -o errexit |
|
|
|
set -o errexit |
|
|
|
|
|
|
|
|
|
|
@ -502,9 +494,3 @@ mainScript |
|
|
|
|
|
|
|
|
|
|
|
safeExit # Exit cleanly |
|
|
|
safeExit # Exit cleanly |
|
|
|
|
|
|
|
|
|
|
|
[ -n "$KB_DIR" ] && dataDir="$KB_DIR" || |
|
|
|
|
|
|
|
dataDir="${XDG_DATA_HOME:=$HOME/.local/share}/kb/" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p "$dataDir" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|