Skip to content

Commit a80cfb8

Browse files
committed
self-update testing
1 parent 5aecff3 commit a80cfb8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

iiab-upgrade

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,13 @@ function update_self() {
9595
echo -e "\nUpdating iiab-factory"
9696
cd iiab-factory
9797
git checkout master
98+
git pull
9899
if [ $test != "none" ]; then
99100
git checkout $test
101+
git pull https://github.com/jvonau/iiab-factory.git $test
100102
fi
101-
git pull
102103
NEW_VERSION=$(grep RELEASE $SCRIPT | awk -F = '{print $2}' | head -n 1)
103-
cp $SCRIPT /usr/sbin/$SCRIPT
104+
cp --remove-destination $SCRIPT /usr/sbin/$SCRIPT
104105
echo "Latest $SCRIPT now installed"
105106
if [ $NEW_VERSION -gt $RELEASE ]; then
106107
echo " *** Relaunching $SCRIPT after update"

0 commit comments

Comments
 (0)