diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-05 11:10:01 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-05 11:10:01 +1200 |
commit | 442f86824abf7371968bee00f33dc2a96272f09e (patch) | |
tree | d6b60b7c95abb2b8a760163ce602c44a34a3ec79 | |
parent | Couple of minor tweaks to path() (diff) | |
download | dotfiles-442f86824abf7371968bee00f33dc2a96272f09e.tar.gz dotfiles-442f86824abf7371968bee00f33dc2a96272f09e.zip |
Remove redundant arg check
-rw-r--r-- | bash/bashrc.d/path.bash | 4 |
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 |