diff options
author | Joe <rbo@gmx.us> | 2024-06-20 21:00:56 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-06-20 21:00:56 +0200 |
commit | 90cb341c235ff2b007802abd10ac09d944285311 (patch) | |
tree | a9c2f1ec8476fc00ed69db99eff8be34ae1e3541 /.local | |
parent | up (diff) | |
download | dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.tar.gz dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.tar.bz2 dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.tar.xz dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.tar.zst dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.zip |
up
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/linkview | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview index 121afad..8874f08 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -182,7 +182,7 @@ sub open_link while (1) { $val = `tail -n 1 "$tmpfile" | awk '{print \$2}' | tr -d '%'`; if (looks_like_number($val) != 0) { - system( + system( NOTIFYSEND_PATH, '-h', 'int:value:' . $val, @@ -238,13 +238,10 @@ sub open_link ' <b>' . $file_name . '</b> started downloading' ); (undef, undef, $ret) = capture { - given (HOSTNAME) { - when(["mother", "po-rbo"]) { - system(CURL_PATH, "-fsSLO", $url); - } - when("mars") { - system(FETCH_PATH, $url); - } + if (HOSTNAME eq "mother" or "po-rbo") { + system(CURL_PATH, "-fsSLO", $url); + } elsif (HOSTNAME == "mars") { + system(FETCH_PATH, $url); } }; if ($ret == 0) { |