diff --git a/set_app_name.sh b/set_app_name.sh index 6e3436b..d002c2c 100755 --- a/set_app_name.sh +++ b/set_app_name.sh @@ -8,6 +8,7 @@ wsl_safe_sed_replace() { local file=$2 local tmpfile tmpfile=$(mktemp "${file}.XXXXXX") || exit 1 + chmod "$(stat --format=%a $file)" "$tmpfile" sed "$pattern" "$file" > "$tmpfile" && mv -f "$tmpfile" "$file" }