We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aecff3 commit a80cfb8Copy full SHA for a80cfb8
iiab-upgrade
@@ -95,12 +95,13 @@ function update_self() {
95
echo -e "\nUpdating iiab-factory"
96
cd iiab-factory
97
git checkout master
98
+ git pull
99
if [ $test != "none" ]; then
100
git checkout $test
101
+ git pull https://github.com/jvonau/iiab-factory.git $test
102
fi
- git pull
103
NEW_VERSION=$(grep RELEASE $SCRIPT | awk -F = '{print $2}' | head -n 1)
- cp $SCRIPT /usr/sbin/$SCRIPT
104
+ cp --remove-destination $SCRIPT /usr/sbin/$SCRIPT
105
echo "Latest $SCRIPT now installed"
106
if [ $NEW_VERSION -gt $RELEASE ]; then
107
echo " *** Relaunching $SCRIPT after update"
0 commit comments