Use 4 space indent consistently

This commit is contained in:
David Kale
2019-11-07 14:30:18 -05:00
parent f1b36bb957
commit 4899d8513d
+27 -27
View File
@@ -67,34 +67,34 @@ fi
# Linux can publish linux-x64/arm/rhel.6-x64 # Linux can publish linux-x64/arm/rhel.6-x64
# OSX can publish osx-x64 # OSX can publish osx-x64
if [[ "$CURRENT_PLATFORM" == 'windows' ]]; then if [[ "$CURRENT_PLATFORM" == 'windows' ]]; then
if [[ ("$RUNTIME_ID" != 'win-x86') && ("$RUNTIME_ID" != 'win-x64') ]]; then if [[ ("$RUNTIME_ID" != 'win-x86') && ("$RUNTIME_ID" != 'win-x64') ]]; then
echo "Failed: Can't build $RUNTIME_ID package $CURRENT_PLATFORM" >&2 echo "Failed: Can't build $RUNTIME_ID package $CURRENT_PLATFORM" >&2
exit 1 exit 1
fi fi
elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then elif [[ "$CURRENT_PLATFORM" == 'linux' ]]; then
if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') && ("$RUNTIME_ID" != 'linux-arm') && ("$RUNTIME_ID" != 'rhel.6-x64') ]]; then if [[ ("$RUNTIME_ID" != 'linux-x64') && ("$RUNTIME_ID" != 'linux-x86') && ("$RUNTIME_ID" != 'linux-arm64') && ("$RUNTIME_ID" != 'linux-arm') && ("$RUNTIME_ID" != 'rhel.6-x64') ]]; then
echo "Failed: Can't build $RUNTIME_ID package $CURRENT_PLATFORM" >&2 echo "Failed: Can't build $RUNTIME_ID package $CURRENT_PLATFORM" >&2
exit 1 exit 1
fi fi
elif [[ "$CURRENT_PLATFORM" == 'darwin' ]]; then elif [[ "$CURRENT_PLATFORM" == 'darwin' ]]; then
if [[ ("$RUNTIME_ID" != 'osx-x64') ]]; then if [[ ("$RUNTIME_ID" != 'osx-x64') ]]; then
echo "Failed: Can't build $RUNTIME_ID package $CURRENT_PLATFORM" >&2 echo "Failed: Can't build $RUNTIME_ID package $CURRENT_PLATFORM" >&2
exit 1 exit 1
fi fi
fi fi
function failed() function failed()
{ {
local error=${1:-Undefined error} local error=${1:-Undefined error}
echo "Failed: $error" >&2 echo "Failed: $error" >&2
popd popd
exit 1 exit 1
} }
function warn() function warn()
{ {
local error=${1:-Undefined error} local error=${1:-Undefined error}
echo "WARNING - FAILED: $error" >&2 echo "WARNING - FAILED: $error" >&2
} }
function checkRC() { function checkRC() {
@@ -235,15 +235,15 @@ if [[ "$CURRENT_PLATFORM" == 'windows' ]]; then
fi fi
case $DEV_CMD in case $DEV_CMD in
"build") build;; "build") build;;
"b") build;; "b") build;;
"test") runtest;; "test") runtest;;
"t") runtest;; "t") runtest;;
"layout") layout;; "layout") layout;;
"l") layout;; "l") layout;;
"package") package;; "package") package;;
"p") package;; "p") package;;
*) echo "Invalid cmd. Use build(b), test(t), layout(l) or package(p)";; *) echo "Invalid cmd. Use build(b), test(t), layout(l) or package(p)";;
esac esac
popd popd