This commit is contained in:
fatalerrors
2026-04-15 08:13:52 +02:00
parent e5bafe1721
commit b79103a0a6
2 changed files with 7 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ utaz()
unarj e "$1" "$2/" >/dev/null 2>&1 unarj e "$1" "$2/" >/dev/null 2>&1
} }
_unlza() _unlha()
{ {
# lha typically extracts into the current directory # lha typically extracts into the current directory
# We ensure it hits the target directory # We ensure it hits the target directory
@@ -546,7 +546,7 @@ taz()
;; ;;
-[1-9]) -[1-9])
compression="${1#-}" complevel="${1#-}"
shift shift
;; ;;
--) --)

View File

@@ -148,7 +148,8 @@ export -f isipv6
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Encode a string so it can be used as a URL parameter # Encode a string so it can be used as a URL parameter
# Usage: urlencode <string> # Usage: urlencode <string>
urlencode() { urlencode()
{
local LANG=C local LANG=C
local str="$*" local str="$*"
local length="${#str}" local length="${#str}"
@@ -177,7 +178,8 @@ export -f urlencode
# -c, --coord Display only the coordinates (latitude, longitude) # -c, --coord Display only the coordinates (latitude, longitude)
# -a, --as Display only the Autonomous System (AS) information # -a, --as Display only the Autonomous System (AS) information
# -R, --raw Display raw JSON response # -R, --raw Display raw JSON response
myextip() { myextip()
{
local show_ip=false show_isp=false show_loc=false local show_ip=false show_isp=false show_loc=false
local show_coord=false show_as=false show_raw=false local show_coord=false show_as=false show_raw=false
local all=true local all=true
@@ -236,7 +238,7 @@ myextip() {
# Fetch data. Allow overriding endpoint via env var MYEXTIP_URL # Fetch data. Allow overriding endpoint via env var MYEXTIP_URL
local 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 local response
if ! response=$(dwl "$MYEXTIP_URL"); then if ! response=$(dwl "$MYEXTIP_URL"); then