#/bin/sh # # Dimitris Tzemos (dijemos~at~gmail~dot~com) # # Download latest google-chrome debian binary # which will be used to create the slackware .txz package arch=${arch:-x86_64} if [ "$arch" = "x86_64" ]; then parch="amd64" else parch="i386" fi echo $arch echo $parch startdir=`pwd` file="https://dl.google.com/linux/direct/google-chrome-stable_current_$parch.deb" filen="google-chrome-stable_current_$parch.deb" if [ -f $filen ]; then rm $filen fi if [ -f `wget $file` ]; then wget -N -nd -r -np $file fi clear cd $startdir