bug-bash
[Top][All Lists]
Advanced

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

r.f.e.


From: Jude DaShiell
Subject: r.f.e.
Date: Thu, 3 Mar 2016 18:00:53 -0500 (EST)
User-agent: Alpine 2.20 (NEB 67 2015-01-07)

This would have been cleaner had bash been able to wait until a command it was given had finished execution before doing its next command:
#!/usr/bin/env bash
# file: sonar.sh - download and test sonar gnome net and mate script
echo 
"https://sourceforge.net/projects/sonargnulinux/files/sonar-mate-edition-2016.03-x86_64.iso/download";
 >sonar.dat
echo 
"https://sourceforge.net/projects/sonargnulinux/files/sonar-gnome-edition-2016.03-x86_64.iso/download";
 >>sonar.dat
echo 
"https://sourceforge.net/projects/sonargnulinux/files/sonar-mate-edition-2016.03-x86_64.iso.sha512/download";
 >>sonar.dat
echo 
"https://sourceforge.net/projects/sonargnulinux/files/sonar-gnome-edition-2016.03-x86_64.iso.sha512/download";
 >>sonar.dat
wget --background --continue --trust-server-names --max-redirect=10000 --tries=0 
--input-file="sonar.dat"
echo "#!/usr/bin/env bash" >sonar2.sh
echo "                sha512sum -c sonar-gnome-edition-2016.03-x86_64.iso.sha512" 
>>sonar2.sh
echo "                    sha512sum -c sonar-mate-edition-2016.03-x86_64.iso.sha512" 
>>sonar2.sh
echo "rm -f sonar.dat" >>sonar2.sh
chmod 755 sonar2.sh
echo "run sonar2.sh to test downloaded isos."

--




reply via email to

[Prev in Thread] Current Thread [Next in Thread]