diff --git a/.github/actions/package-nfpm/action.yml b/.github/actions/package-nfpm/action.yml index 1de35f098..77b9c1dd7 100644 --- a/.github/actions/package-nfpm/action.yml +++ b/.github/actions/package-nfpm/action.yml @@ -92,7 +92,7 @@ runs: export APACHE_GROUP="www-data" fi - if [[ "$MAJOR_VERSION" != "" ]]; then + if [ -z "$MAJOR_VERSION" ]; then MAJOR_LEFT=$( echo $MAJOR_VERSION | cut -d "." -f1 ) MAJOR_RIGHT=$( echo $MAJOR_VERSION | cut -d "-" -f1 | cut -d "." -f2 ) if [ "$MAJOR_RIGHT" == "04" ]; then