aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cdlog.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdlog.sh b/cdlog.sh
index 32c65de..c909d65 100644
--- a/cdlog.sh
+++ b/cdlog.sh
@@ -37,8 +37,9 @@ cdlog.args()
# Utility for nth positional param
cdlog.get_param()
{
- shift $1
+ if shift $1 ; then
echo "$1"
+ fi
}
# Read state from ~/.cdlog.dirs