aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-05 11:10:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-05 11:10:01 +1200
commit442f86824abf7371968bee00f33dc2a96272f09e (patch)
treed6b60b7c95abb2b8a760163ce602c44a34a3ec79 /bash/bashrc.d
parentCouple of minor tweaks to path() (diff)
downloaddotfiles-442f86824abf7371968bee00f33dc2a96272f09e.tar.gz
dotfiles-442f86824abf7371968bee00f33dc2a96272f09e.zip
Remove redundant arg check
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/path.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash
index 03f16c16..658d41a9 100644
--- a/bash/bashrc.d/path.bash
+++ b/bash/bashrc.d/path.bash
@@ -46,7 +46,7 @@ path() {
insert|i)
local -a patharr
IFS=: read -a patharr < <(printf '%s\n' "$PATH")
- local dir=${1:?}
+ local dir=$1
if [[ -z "$dir" ]] ; then
printf 'bash: %s: need a directory path to insert\n' \
"$FUNCNAME" >&2
@@ -130,7 +130,7 @@ path() {
check|c)
local -a patharr
IFS=: read -a patharr < <(printf '%s\n' "$PATH")
- local dir=${1:?}
+ local dir=$1
if [[ -z "$dir" ]] ; then
printf 'bash: %s: need a directory path to check\n' \
"$FUNCNAME" >&2