From b659f87830d0a85c5a3c39dcd8041af2e4986f2d Mon Sep 17 00:00:00 2001 From: "Karl N. Redman" Date: Fri, 14 Jun 2019 00:31:24 -0500 Subject: [PATCH] fixed DIRP_LATEST_FILE being set to NONE --- dirp.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dirp.bash b/dirp.bash index 1d84373..6956301 100755 --- a/dirp.bash +++ b/dirp.bash @@ -14,10 +14,11 @@ ## defined before this file is sourced. ############################################ -if [ -z ${DIRP_LATEST_FILE+notArealVariable} ];then +if [ -z ${DIRP_LATEST_FILE+notArealVariable} ] || [ ${DIRP_LATEST_FILE} = "NONE" ];then + # TODO: figure out why this gets set to NONE DIRP_LATEST_FILE="/tmp/dirp_latest" fi - +# if [ -z ${DIRP_PROJECTS_DIR+notArealVariable} ];then DIRP_PROJECTS_DIR="$HOME/dirlists" fi