๐Ÿ“ฆโž”๐Ÿฆ‹ Store and retrieve files on the Atmosphere

fix error during PDS name parsing

+1 -1
+1 -1
src/shared/util.sh
··· 694 694 *) 695 695 pds_oauth_url="$pds/oauth/authorize" 696 696 pds_oauth_page="$(curl -H "User-Agent: $(atfile.util.get_uas)" -s -L -X GET "$pds_oauth_url" | tr -d '\n')" 697 - pds_customization_data="$(echo "$pds_oauth_page" | sed -n 's/.*window\["__customizationData"\]=JSON.parse("\(.*\)");.*/\1/p' | sed 's/\\"/"/g; s/\\\\/\\/g')" 697 + pds_customization_data="$(echo "$pds_oauth_page" | sed -n 's/.*window\["__customizationData"\]=JSON.parse("\(.*\)");.*/\1/p' | sed 's/\\"/"/g; s/\\\\/\\/g' | sed 's/");window\[".*$//')" 698 698 699 699 if [[ $pds_customization_data == "{"* ]]; then 700 700 pds_name="$(echo "$pds_customization_data" | jq -r '.name')"