Skip to content

Commit 0fdde78

Browse files
committed
Do not set change empty CACHEFILE to ./
1 parent 9479ce4 commit 0fdde78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autorevision.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fi
9696

9797
# Make sure that the path we are given is one we can source
9898
# (dash, we are looking at you).
99-
if ! echo "${CACHEFILE}" | grep -q '^\.*/'; then
99+
if [ ! -z "${CACHEFILE}" ] && ! echo "${CACHEFILE}" | grep -q '^\.*/'; then
100100
CACHEFILE="./${CACHEFILE}"
101101
fi
102102

0 commit comments

Comments
 (0)