update to hrev script.
#1
There are times that one needs to update your install to a previous version. this little script can help:


Code:
#!/bin/bash

read -e -p "Add repositories for: hrev" hrev

pkgman add http://packages.haiku-os.org/haiku/master/$(getarch)/r1~alpha4_pm_hrev$hrev
if [ "$?" -ne "0" ]; then
    echo "Failure detected, exiting."
    exit 1
fi
pkgman add http://packages.haiku-os.org/haikuports/master/repo/$(getarch)/by_hrev/hrev$hrev
if [ "$?" -ne "0" ]; then
    echo "Failure detected, exiting."
    exit 1
fi

while true; do
    read -p "Do you want to update now? [yes/no] " yn
    case $yn in
        [Yy]* ) pkgman update; break;;
        [Nn]* ) exit;;
        * ) echo "Please answer y or n.";;
    esac
done
Reply


Messages In This Thread
update to hrev script. - by bbjimmy - 06-24-2015, 09:20 AM
RE: update to hrev script. - by clasqm - 07-31-2015, 08:30 AM
RE: update to hrev script. - by bbjimmy - 07-31-2015, 08:39 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)
Free Web Hosting