Fixed SC2236: Use -n instead of ! -z.

This commit is contained in:
Teal Dulcet
2024-04-03 09:22:50 -04:00
committed by Joshua Tauberer
parent 4b7d4ba0a6
commit 44d9f6eebd
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ if [ ! -d /usr/local/lib/owncloud/ ] || [[ ! ${CURRENT_NEXTCLOUD_VER} =~ ^$nextc
fi
# If ownCloud or Nextcloud was previously installed....
if [ ! -z "${CURRENT_NEXTCLOUD_VER}" ]; then
if [ -n "${CURRENT_NEXTCLOUD_VER}" ]; then
# Database migrations from ownCloud are no longer possible because ownCloud cannot be run under
# PHP 7.