I'm busy working on an Arch package (PKGBUILD) and since I'm not a programmer it is going really slow.
I need help with the script.
To make it more elegant I want the script to check if wget already downloaded the file, and if it has to skip the download and continue with the next step. How would I go about scripting that?
This is the script so far:
At lot left to be desired, bur I know very little when it comes to scripting...
I need help with the script.
To make it more elegant I want the script to check if wget already downloaded the file, and if it has to skip the download and continue with the next step. How would I go about scripting that?
This is the script so far:
Code:
#!/bin/bash
wget -P /var/cache/pacman/pkg/ http://www.bibleanalyzer.com/bibleanalyzer_4.1-0_i386.deb
deb2targz /var/cache/pacman/pkg/bibleanalyzer_4.1-0_i386.deb
tar xvzf /var/cache/pacman/pkg/bibleanalyzer_4.1-0_i386.tar.gz -C /
sed -i 's/python/python2/g' /usr/bin/bibleanalyzer
At lot left to be desired, bur I know very little when it comes to scripting...
Last edited: