diff options
author | Erich Eckner <git@eckner.net> | 2018-08-17 07:42:41 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-08-17 07:42:41 +0200 |
commit | a1c882639a0d9bf5c50defe4f8326d35f093fc86 (patch) | |
tree | 5ef8a3faab18e44bce589b01f26aec2fe7b04492 /manualPorts | |
parent | e78fff20823437c97f3fca06f19cd76d8d55fe2d (diff) | |
download | crux-ports-a1c882639a0d9bf5c50defe4f8326d35f093fc86.tar.xz |
xorg-calc/lastVersion.sh: style update
Diffstat (limited to 'manualPorts')
-rwxr-xr-x | manualPorts/xorg-xcalc/lastVersion.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manualPorts/xorg-xcalc/lastVersion.sh b/manualPorts/xorg-xcalc/lastVersion.sh index 8fdd055..47c5c6a 100755 --- a/manualPorts/xorg-xcalc/lastVersion.sh +++ b/manualPorts/xorg-xcalc/lastVersion.sh @@ -1,8 +1,11 @@ #!/bin/bash -curl "https://www.x.org/archive/individual/app/" 2> /dev/null | \ - tr "\"" "\n" | \ - grep "^xcalc-.*\.tar\.bz2\$" | \ - sed "s|^xcalc-\(.*\)\.tar\.bz2\$|\1|" | \ +curl -Ss 'https://www.x.org/archive/individual/app/' | \ + tr '"' '\n' | \ + sed -n ' + s/^xcalc-\(.*\)\.tar\.bz2$/\1/ + T + p + ' | \ sort -V | \ tail -n1 |