aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-29 15:13:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-29 15:13:19 +1200
commit093b217d837c0c061509e2bd3c06826d2380fa7e (patch)
tree6784a7d6a26c9775613f765d03f3c104340a4515 /bash/bashrc.d
parentAdd ud() function as cd ../../../.. shortcut (diff)
downloaddotfiles-093b217d837c0c061509e2bd3c06826d2380fa7e.tar.gz
dotfiles-093b217d837c0c061509e2bd3c06826d2380fa7e.zip
Add missing error exit conditions to vr()
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/vr.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/bashrc.d/vr.bash b/bash/bashrc.d/vr.bash
index 8b7855da..150861a8 100644
--- a/bash/bashrc.d/vr.bash
+++ b/bash/bashrc.d/vr.bash
@@ -7,17 +7,17 @@ vr() {
if ! [[ -e $path ]] ; then
printf 'bash: %s: %s: No such file or directory\n' \
"$FUNCNAME" "$path"
- return
+ return 1
fi
if ! [[ -d $path ]] ; then
printf 'bash: %s: %s: Not a directory\n' \
"$FUNCNAME" "$path"
- return
+ return 1
fi
if ! [[ -x $path ]] ; then
printf 'bash: %s: %s: Permission denied\n' \
"$FUNCNAME" "$path"
- return
+ return 1
fi
# Ask Git the top level