diff options
Diffstat (limited to 'bash/bashrc.d')
-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 |