From 442f86824abf7371968bee00f33dc2a96272f09e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 5 Jun 2015 11:10:01 +1200 Subject: Remove redundant arg check --- bash/bashrc.d/path.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash/bashrc.d') 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 -- cgit v1.2.3