test
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# shellcheck disable=1090,2034,2011
|
||||
#
|
||||
# "should check code directly not $?"
|
||||
# 01. "should check code directly not $?"
|
||||
# shellcheck disable=2181
|
||||
# ---------------------------------------------------
|
||||
#
|
||||
# 02. "can't follow . import"
|
||||
# shellcheck disable=1090,1091
|
||||
#
|
||||
# 03. "possible misspelling"
|
||||
# shellcheck disable=2153
|
||||
#
|
||||
# 04. "use find .. over ls"
|
||||
# shellcheck disable=2011
|
||||
# -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
|
||||
|
||||
# ===================================================
|
||||
# 01. Attempt to load global DayZ values
|
||||
@@ -263,20 +270,6 @@ update_stock_maps() {
|
||||
fi
|
||||
}
|
||||
|
||||
# =====================================================================================
|
||||
lock_remote_server() {
|
||||
msg "Locking remote server."
|
||||
if ! echo 'locked' | tee "$REMOTE_SERVER_LOCKFILE" ; then
|
||||
die "Could not create: $REMOTE_SERVER_LOCKFILE"
|
||||
fi
|
||||
}
|
||||
|
||||
unlock_remote_server() {
|
||||
msg "Unlocking remote server."
|
||||
rm -f "$REMOTE_SERVER_LOCKFILE" || die "Could not remove: $REMOTE_SERVER_LOCKFILE"
|
||||
}
|
||||
# =====================================================================================
|
||||
|
||||
main() {
|
||||
check || die "Failed to pass health checks"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user