clear the delimiter for read

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2016-03-06 09:01:49 +03:00
parent 9b3516951c
commit c6e43448ca

6
ufw
View File

@ -80,10 +80,6 @@ get_album_id() {
get_api_status <<< "$api_response" 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 if (( api_status == 200 )); then
album_id=$( jshon -e data -e album -e id -u <<< "$api_response" ) album_id=$( jshon -e data -e album -e id -u <<< "$api_response" )
misc_curl_args+=( -F album_id="$album_id" ) misc_curl_args+=( -F album_id="$album_id" )
@ -222,7 +218,7 @@ take_screenshot() {
} }
get_api_status() { 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 jshon -e status -e code -u -p -e message -u
) )
} }