TT#38783 Fix minor code style issues in deployment.sh

* removed unnecessary '|| true'
* move code init from the "functions" in "execution" section

Change-Id: Icc32e23e92785fc2259fc8f36d98de813dd00b36
changes/99/21999/2
Alexander Lutay 7 years ago
parent c9b5ca611a
commit ef7cf74d4f

@ -114,7 +114,6 @@ enable_deploy_status_server() {
)
}
CMD_LINE=$(cat /proc/cmdline)
stringInString() {
local to_test_="$1" # matching pattern
local source_="$2" # string to search in
@ -301,6 +300,11 @@ disable_trace() {
}
# }}}
###################################################
# the script execution begins here
CMD_LINE=$(cat /proc/cmdline)
echo "Host IP: $(ip-screen)"
echo "Deployment version: $SCRIPT_VERSION"
@ -342,7 +346,7 @@ fi
[ -z "${DISK}" ] && die "Error: No non-removable disk suitable for installation found"
if checkBootParam 'ngcpstatus=' ; then
STATUS_WAIT=$(getBootParam ngcpstatus || true)
STATUS_WAIT=$(getBootParam ngcpstatus)
[ -n "$STATUS_WAIT" ] || STATUS_WAIT=30
fi

Loading…
Cancel
Save