File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,24 +20,23 @@ if [ $os == "Linux" ]; then
2020
2121 # install chromium from source if not available via apt-get
2222 # Raspbian Jesse does not include chromium in apt-get
23- if dpkg -s chromium; then
24- :
25- else
23+ if ! dpkg -s chromium; then
24+ # Raspbian Jesse does not have chromium in its repositories
2625 # adapted from https://medium.com/@icebob/jessie-on-raspberry-pi-2-with-docker-and-chromium-c43b8d80e7e1#6afd
2726 # files from https://launchpad.net/ubuntu/+source/chromium-browser/
2827 cfile=$( mktemp)
2928 wget https://launchpad.net/ubuntu/+archive/primary/+files/chromium-browser_48.0.2564.116-0ubuntu0.15.10.1.1221_armhf.deb -O $cfile
30- fffile=$( mktep )
29+ fffile=$( mktemp )
3130 wget https://launchpad.net/ubuntu/+archive/primary/+files/chromium-codecs-ffmpeg-extra_48.0.2564.116-0ubuntu0.15.10.1.1221_armhf.deb -O $fffile
32- sudo dpkg -i $fffile $cfile
33- # resolve "package old or missing" error
34- sudo apt-get install -f
35- sudo dpkg -i $fffile $cfile
31+ if ! sudo dpkg -i $fffile $cfile ; then
32+ # resolve "package old or missing" error
33+ sudo apt-get install -f
34+ sudo dpkg -i $fffile $cfile
35+ fi
3636 # clean up
3737 rm $cfile $fffile
3838 fi
3939
40-
4140 if [ $arq == " armv7l" ]; then
4241 # on RaspberryPi
4342
You can’t perform that action at this time.
0 commit comments