Skip to content

Commit

Permalink
feat: Sanitize filename
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 19, 2024
1 parent 1ef8a99 commit bc6a34b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ if [ ! -f "$STORAGE/$BASE" ]; then

else

BASE=$(basename "$VERSION")
BASE="${BASE%%\?*}"
BASE=$(basename "${VERSION%%\?*}")
: "${BASE//+/ }"; printf -v BASE '%b' "${_//%/\\x}"
BASE=$(echo "$BASE" | sed -e 's/[^A-Za-z0-9._-]/_/g')

Expand Down

0 comments on commit bc6a34b

Please sign in to comment.