slackbuilds/xap/update-opera-next.sh

13 lines
486 B
Bash
Raw Normal View History

2011-07-11 16:35:27 +02:00
#!/bin/sh
ARCH=${ARCH:=$(uname -m)} #i386 for 32 bits
PKGs_ARCHIVE=${PKGs_ARCHIVE:=/home/installs/PKGs}
LATEST_PKG_NAME=$(lftp http://people.opera.com/ruario/snapshot/ -e "ls ; bye" | grep -o "opera-next-.*-x86_64-1ro.tlz")
if [ -e $PKGs_ARCHIVE/$LATEST_PKG_NAME ]; then
echo "Latest package already installed."
else
wget -c http://people.opera.com/ruario/snapshot/$LATEST_PKG_NAME -O $PKGs_ARCHIVE/$LATEST_PKG_NAME \
&& upgradepkg --install-new $PKGs_ARCHIVE/$LATEST_PKG_NAME
fi