From 9ba1d9f663f3d7383307d7348880aa6d1404d361 Mon Sep 17 00:00:00 2001 From: Luciano Silva Date: Fri, 17 Feb 2017 21:36:49 -0500 Subject: [PATCH] Fix IN script --- assets/in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/assets/in b/assets/in index 43b5fc0..3b6ec3d 100755 --- a/assets/in +++ b/assets/in @@ -35,7 +35,6 @@ if [ -z "$filename" ]; then filename="file" fi - # Building CURL request args_url="$url" args_security= @@ -46,7 +45,6 @@ trueValue="true" [ -n "$skip_ssl_verification" ] && [ "${skip_ssl_verification,,}" = "${trueValue,,}" ] && args_security="$args_security -k"; final_url=$(echo "$args_security" " $args_url") -echo $final_url version=$(check_version "$final_url") if [ -z "$version" ]; then @@ -56,4 +54,4 @@ fi curl $args_security "$args_url" "-o" "$filename" -echo "{'version': {'version': '$version'}}" >&3 +jq -n "{ version: {version: $(echo $version | jq .[].version )}}" >&3