Resolve SC2115: 'Use "${var:?}" to ensure this never expands to /'
https://github.com/koalaman/shellcheck/wiki/SC2115
This commit is contained in:
1 parent
279c49f084
commit
8ed0193b1d
1 file changed
+1
-1
@@ -3,7 +3,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|||||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||||
|
|
||||||
APP="$1"; IMAGE_REPO=$(get_app_image_repo $APP)
|
APP="$1"; IMAGE_REPO=$(get_app_image_repo $APP)
|
||||||
[[ -n $APP ]] && rm -rf "$DOKKU_ROOT/$APP" > /dev/null
|
[[ -n $APP ]] && rm -rf "${DOKKU_ROOT:?}/$APP" > /dev/null
|
||||||
|
|
||||||
# remove all application containers & images
|
# remove all application containers & images
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
|
|||||||
Reference in new issue
Block a user