From b79103a0a6adadd44afd5a597cc3d05e62b7a733 Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 15 Apr 2026 08:13:52 +0200 Subject: [PATCH] bugfix --- profile.d/compress.sh | 4 ++-- profile.d/net.sh | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/profile.d/compress.sh b/profile.d/compress.sh index 4dcfbe1..fa5b1b1 100644 --- a/profile.d/compress.sh +++ b/profile.d/compress.sh @@ -93,7 +93,7 @@ utaz() unarj e "$1" "$2/" >/dev/null 2>&1 } - _unlza() + _unlha() { # lha typically extracts into the current directory # We ensure it hits the target directory @@ -546,7 +546,7 @@ taz() ;; -[1-9]) - compression="${1#-}" + complevel="${1#-}" shift ;; --) diff --git a/profile.d/net.sh b/profile.d/net.sh index a9529db..6d41434 100644 --- a/profile.d/net.sh +++ b/profile.d/net.sh @@ -148,7 +148,8 @@ export -f isipv6 # ------------------------------------------------------------------------------ # Encode a string so it can be used as a URL parameter # Usage: urlencode -urlencode() { +urlencode() +{ local LANG=C local str="$*" local length="${#str}" @@ -177,7 +178,8 @@ export -f urlencode # -c, --coord Display only the coordinates (latitude, longitude) # -a, --as Display only the Autonomous System (AS) information # -R, --raw Display raw JSON response -myextip() { +myextip() +{ local show_ip=false show_isp=false show_loc=false local show_coord=false show_as=false show_raw=false local all=true @@ -236,7 +238,7 @@ myextip() { # Fetch data. Allow overriding endpoint via env var MYEXTIP_URL local MYEXTIP_URL - MYEXTIP_URL=${MYEXTIP_URL:-http://ip-api.com/json/} + MYEXTIP_URL=${MYEXTIP_URL:-https://ip-api.com/json/} local response if ! response=$(dwl "$MYEXTIP_URL"); then