double brackets

This commit is contained in:
Rick Olson 2015-05-18 18:12:17 -06:00
parent b4a7bf887e
commit d17948c8b8
2 changed files with 4 additions and 2 deletions

@ -6,7 +6,7 @@ SHUTDOWN_LFS=no
SHOW_LOGS=yes
atexit() {
if [ "$SHOW_LOGS" == "yes" ]; then
if [[ "$SHOW_LOGS" == "yes" ]]; then
if [ -s "$REMOTEDIR/gitserver.log" ]; then
echo ""
echo "gitserver.log:"
@ -26,6 +26,8 @@ trap "atexit" EXIT
if [ -s "$LFS_URL_FILE" ]; then
SHOW_LOGS=no
echo "$LFS_URL_FILE still exists!"
echo "Confirm other tests are done, and run:"
echo " $ curl $(cat "$LFS_URL_FILE")/shutdown"
exit 1
fi

@ -107,7 +107,7 @@ setup() {
shutdown() {
rm -rf "$TRASHDIR"
if [ "$SHUTDOWN_LFS" == "no" ]; then
if [[ "$SHUTDOWN_LFS" == "no" ]]; then
exit 0
fi