Skip to content

Commit a777b9e

Browse files
committed
Fix trailing slashes in detected path
Trailing slashes cause the detection of the grantlee5 version to fail with an empty string, causing deployment to go to the wrong directory (the parent dir of the actual directory).
1 parent 2253147 commit a777b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grantlee5/linuxdeploy-plugin-grantlee5.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fi
117117

118118
# guess grantlee version from the plugin path
119119
# this should always be the last component, as the plugins need to be stored in a directory like .../grantlee/<version>/grantlee*.so
120-
grantlee5_version="$(echo "$GRANTLEE5_PLUGINS_DIR" | rev | cut -d/ -f1 | rev)"
120+
grantlee5_version="$(echo "$GRANTLEE5_PLUGINS_DIR" | sed -e 's|/*$||' | rev | cut -d/ -f1 | rev)"
121121

122122
if [[ "$grantlee5_version" == "" ]]; then
123123
echo "Error: failed to detect grantlee5 version"

0 commit comments

Comments
 (0)