getjenux.sh script needs help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



#!/usr/bin/env bash
# file: getjenux.sh - get jenux script
wget -bc -o jenux.log https://nashcentral.duckdns.org/projects/Jenux-2024.03.21-tripple.iso.sha512 &&
UPDATE='grep -ic error jenux.log'
if [ $UPDATE -gt 0]; then
echo "jenux likely had an update."
fi
wget -bc -a jenux.log https://nashcentral.duckdns.org/projects/Jenux-2024.03.26-tripple.iso
cut here.
As the script is now,
$UPDATE will increment each time ERROR is found in jenux.log.
What is not happening is the error message isn't appearing on the terminal
and the script doesn't exit yet.
If I can get this script working correctly it may be generalized to
download other distros.


-- 
 Jude <jdashiel at panix dot com>
 "There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo.
 Please use in that order."
 Ed Howdershelt 1940.

-- 
You received this message because you are subscribed to the Google Groups "blinux-list@xxxxxxxxxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blinux-list+unsubscribe@xxxxxxxxxx.




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]