Refactor(update): Remove version file missing warning
This commit is contained in:
parent
2a50bf6ab9
commit
1e7e26acf6
@ -42,8 +42,6 @@ function update_script() {
|
|||||||
CURRENT_VERSION=""
|
CURRENT_VERSION=""
|
||||||
if [[ -f /opt/${APP}_version.txt ]]; then
|
if [[ -f /opt/${APP}_version.txt ]]; then
|
||||||
CURRENT_VERSION=$(cat /opt/${APP}_version.txt)
|
CURRENT_VERSION=$(cat /opt/${APP}_version.txt)
|
||||||
else
|
|
||||||
msg_warning "Version file /opt/${APP}_version.txt not found. Cannot determine current version. Will attempt update."
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${LATEST_RELEASE}" != "$CURRENT_VERSION" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
if [[ "${LATEST_RELEASE}" != "$CURRENT_VERSION" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user