astro

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.clttr.info/astro.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 78b098ba44f22315b4e6feefc3ba44aa354846d7
parent d1ee497d6e230e6785bb3fa05dba3a9d7b1487bf
Author: blmayer <bleemayer@gmail.com>
Date:   Mon,  4 Oct 2021 20:16:56 -0300

Fixed warnings

Diffstat:
Mastro | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/astro b/astro @@ -62,7 +62,7 @@ $(echo "$1" | sed -E 's@^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*)) EOF [ "$debug" ] && echo "Parsed URL: proto: $proto host: $hostport path: $path" >&2 && sleep 2 - if [ "$oldhost" ] && [ "${hostport// /}" = "" ] + if [ "$oldhost" ] && [ "$(echo "$hostport" | sed 's/ //g')" = "" ] then hostport="$oldhost" elif [ "$hostport" = "" ] @@ -306,7 +306,7 @@ histfile="$cachedir/history" LESSKEY="$confighome/astro/less.keys" # Restore terminal -trap "tput rmcup && rm "$histfile"; exit" EXIT INT HUP +trap "tput rmcup && rm $histfile; exit" EXIT INT HUP # This is the final binary form, to save space, it corresponds to: # o (49): go to a URL