mc: added debug-ability to vanilla server downloading

This commit is contained in:
Geoff Bourne committed 2019-02-03 09:49:59 -06:00
1 parent a273ef1763
commit 57a840b069
2 files changed
+47 -1

No files matched your search

+14
View File
@@ -25,4 +25,18 @@ function isTrue {
esac
return ${result}
}
function isDebugging {
if [ ${DEBUG^^} = TRUE ]; then
return 0
else
return 1
fi
}
function debug {
if isDebugging; then
echo "DEBUG: $*"
fi
}