mc: added debug-ability to vanilla server downloading

This commit is contained in:
Geoff Bourne
2019-02-03 09:49:59 -06:00
parent a273ef1763
commit 57a840b069
2 changed files with 47 additions and 1 deletions
+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
}