tangled
alpha
login
or
join now
zio.sh
/
atfile
37
fork
atom
๐ฆโ๐ฆ Store and retrieve files on the Atmosphere
37
fork
atom
overview
issues
3
pulls
pipelines
fix error during PDS name parsing
ducky.ws
6 months ago
23115a77
d35854b7
+1
-1
1 changed file
expand all
collapse all
unified
split
src
shared
util.sh
+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
697
-
pds_customization_data="$(echo "$pds_oauth_page" | sed -n 's/.*window\["__customizationData"\]=JSON.parse("\(.*\)");.*/\1/p' | sed 's/\\"/"/g; s/\\\\/\\/g')"
697
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')"