There is no scan anymore

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2019-05-20 15:30:35 +03:00
parent 58e1b63fb7
commit 784ad95215

18
ufwd
View File

@ -6,9 +6,6 @@ if ! [[ "$XDG_RUNTIME_DIR" ]]; then
XDG_RUNTIME_DIR="/run/user/$UID" XDG_RUNTIME_DIR="/run/user/$UID"
fi fi
# Defaults
cfg_scan_delay='30'
msg() { printf '%s\n' "$*"; } msg() { printf '%s\n' "$*"; }
err() { echo "$*" >&2; } err() { echo "$*" >&2; }
@ -46,22 +43,13 @@ main() {
while (( $# )); do while (( $# )); do
case "$1" in case "$1" in
(--help|-h) usage; return 0;; (--help|-h) usage; return 0;;
(--notify|-n) flag_enable_notifications=1;;
(--clipboard|-c) flag_enable_clipboard=1;;
(--workdir|-d) cfg_workdir+=( "$2" ); shift;; (--workdir|-d) cfg_workdir+=( "$2" ); shift;;
(--scan-delay|-D) cfg_scan_delay="$2"; shift;;
(--notify|-n) flag_enable_notifications=1;;
(--clipboard|-c) flag_enable_clipboard=1;;
(--) shift; break;; (--) shift; break;;
(-*) (-*) err "Unknown key: $1"; usage; return 1;;
err "Unknown key: $1"
usage
return 1
;;
(*) break;; (*) break;;
esac esac
shift shift