summaryrefslogtreecommitdiff
path: root/bin/rcdn
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rcdn')
-rwxr-xr-xbin/rcdn4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/rcdn b/bin/rcdn
index cae9dc8..2c52be4 100755
--- a/bin/rcdn
+++ b/bin/rcdn
@@ -22,6 +22,7 @@ handle_command_line() {
local arg_tags=
local verbosity=0
local version=0
+ local run_hooks=0
local dotfiles_dirs=
local files=
local excludes=
@@ -30,6 +31,8 @@ handle_command_line() {
while getopts VqvI:x:t:d: opt; do
case "$opt" in
I) includes="$includes $OPTARG";;
+ k) run_hooks=1 ;;
+ K) run_hooks=0 ;;
t) arg_tags="$arg_tags $OPTARG" ;;
v) verbosity=$(($verbosity + 1));;
q) verbosity=$(($verbosity - 1));;
@@ -45,6 +48,7 @@ handle_command_line() {
tags=${arg_tags:-$TAGS}
dotfiles_dirs=${dotfiles_dirs:-$DOTFILES_DIRS}
files=$@
+ RUN_HOOKS=$run_hooks
for tag in $tags; do
LS_ARGS="$LS_ARGS -t $tag"