Reorder path prefix removal

This commit is contained in:
travis134 2022-08-18 04:24:04 -07:00
parent 06c627f8a0
commit 4e4e9f12b7
No known key found for this signature in database
GPG key ID: FB8B9EEA5CEF2984

View file

@ -13,6 +13,7 @@ grp_files=$(find "${RAZEPATH}" -type f -iname "*.grp")
echo "Adding games..." >/dev/console
while read -r grp_file; do
path=$(dirname "${grp_file}")
path=${path#"$RAZEPATH/"}
if [[ "$path" =~ \ |\' ]]; then
path="\"${path}\""
fi
@ -22,7 +23,7 @@ while read -r grp_file; do
fi
file="${RAZEPATH}/${grp%.*}.build"
cat >"${file}" <<-EOM
PATH=${path#"$RAZEPATH/"}
PATH=${path}
GRP=${grp}
-- end --
EOM