diff options
author | Christian HoĢltje <docwhat@gerf.org> | 2018-06-07 16:23:30 -0400 |
---|---|---|
committer | Mike Burns <mburns@thoughtbot.com> | 2018-07-06 10:19:20 -0400 |
commit | c263d2b097a7c6bb398491e79f8104213046f38c (patch) | |
tree | e7bc097798d773f52e45494b25764c383c25d0c9 /share | |
parent | 4c24f176c3dc6b16d3464d4c2e80eef62e5d2673 (diff) |
avoid cd having issues with paths that begin with -
Diffstat (limited to 'share')
-rw-r--r-- | share/rcm.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/rcm.sh.in b/share/rcm.sh.in index d0387e2..a1c9f40 100644 --- a/share/rcm.sh.in +++ b/share/rcm.sh.in @@ -136,7 +136,7 @@ run_hooks() { # else's dotfiles repository without reviewing the hooks before doing an `rcup`? find "$hook_file" -type f \( \( -user $LOGNAME -perm -100 \) -o -perm -001 \) \ | sort | while read file; do - sh -c 'cd "`dirname $1`" && ./"`basename $1`"' arg0 "$file" + sh -c 'cd -- "`dirname $1`" && ./"`basename $1`"' arg0 "$file" done else $DEBUG "no $when-$direction hook present for $dotfiles_dir, skipping" |