Skip to content

Commit dc077a1

Browse files
committed
Replaced inline if so that I don't get a return of 1 if dir doesn't exist
1 parent 3ef3182 commit dc077a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/before_install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ elif which apt-get &>/dev/null; then
1717
fi
1818

1919
# Make sure /tmp/myweb doesn't exist so that the test in AfterInstall is really valid
20-
[ -d /tmp/myweb ] && rm -Rf /tmp/myweb
20+
if [ -d /tmp/myweb ]; then
21+
rm -Rf /tmp/myweb
22+
fi

0 commit comments

Comments
 (0)