Skip to content

Commit 2253147

Browse files
committed
Detect detection failures
1 parent b3df5f6 commit 2253147

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

grantlee5/linuxdeploy-plugin-grantlee5.sh

+5
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ fi
119119
# this should always be the last component, as the plugins need to be stored in a directory like .../grantlee/<version>/grantlee*.so
120120
grantlee5_version="$(echo "$GRANTLEE5_PLUGINS_DIR" | rev | cut -d/ -f1 | rev)"
121121

122+
if [[ "$grantlee5_version" == "" ]]; then
123+
echo "Error: failed to detect grantlee5 version"
124+
exit 2
125+
fi
126+
122127
target_dir="$appdir"/usr/plugins/grantlee/"$grantlee5_version"
123128

124129
echo "Copying plugins from $GRANTLEE5_PLUGINS_DIR to $target_dir"

0 commit comments

Comments
 (0)