clear the delimiter for read
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
9b3516951c
commit
c6e43448ca
6
ufw
6
ufw
|
@ -80,10 +80,6 @@ get_album_id() {
|
|||
|
||||
get_api_status <<< "$api_response"
|
||||
|
||||
read -r api_status api_status_message < <(
|
||||
jshon -e status -e code -u -p -e message -u <<< "$api_response"
|
||||
)
|
||||
|
||||
if (( api_status == 200 )); then
|
||||
album_id=$( jshon -e data -e album -e id -u <<< "$api_response" )
|
||||
misc_curl_args+=( -F album_id="$album_id" )
|
||||
|
@ -222,7 +218,7 @@ take_screenshot() {
|
|||
}
|
||||
|
||||
get_api_status() {
|
||||
read -r api_status api_status_message < <(
|
||||
read -d '' -r api_status api_status_message < <(
|
||||
jshon -e status -e code -u -p -e message -u
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user