Skip to content

Commit 3878c0f

Browse files
INSTALL: making sure Git disregard any rebase default behavior to keep the up-to-date message consistent
1 parent 63d3715 commit 3878c0f

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

install.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ if [ $upgrade -eq 1 -a $makerfaire2018 -eq 0 -a -d ${home_dir}/wm8960 ]; then
7676
echo "Updating sound driver - 2/14" > /tmp/pynab.upgrade
7777
cd ${home_dir}/wm8960
7878
sudo chown -R ${owner} .git
79-
pull=$(LANGUAGE=en git pull)
79+
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
80+
pull=$(LANGUAGE=en git pull --no-rebase)
8081
if [ "$pull" == "Already up to date." ]; then
8182
echo "Sound driver is already up-to-date..."
8283
else
@@ -90,7 +91,8 @@ if [ $upgrade -eq 1 ]; then
9091
if [ -d ${home_dir}/tagtagtag-ears ]; then
9192
cd ${home_dir}/tagtagtag-ears
9293
sudo chown -R ${owner} .git
93-
pull=$(LANGUAGE=en git pull)
94+
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
95+
pull=$(LANGUAGE=en git pull --no-rebase)
9496
if [ "$pull" == "Already up to date." ]; then
9597
echo "Ears driver is already up-to-date..."
9698
else
@@ -116,7 +118,8 @@ if [ $upgrade -eq 1 ]; then
116118
if [ -d ${home_dir}/cr14 ]; then
117119
cd ${home_dir}/cr14
118120
sudo chown -R ${owner} .git
119-
pull=$(LANGUAGE=en git pull)
121+
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
122+
pull=$(LANGUAGE=en git pull --no-rebase)
120123
if [ "$pull" == "Already up to date." ]; then
121124
echo "RFID driver is already up-to-date..."
122125
else
@@ -141,8 +144,9 @@ if [ $upgrade -eq 1 ]; then
141144
echo "Updating NabBlockly - 5/14" > /tmp/pynab.upgrade
142145
if [ -d ${root_dir}/nabblockly ]; then
143146
cd ${root_dir}/nabblockly
144-
sudo chown -R ${owner} .
145-
pull=$(LANGUAGE=en git pull)
147+
sudo chown -R ${owner}
148+
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
149+
pull=$(LANGUAGE=en git pull --no-rebase)
146150
if [ "$pull" == "Already up to date." ]; then
147151
echo "NabBlockly is already up-to-date..."
148152
else

upgrade.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ case $step in
2525
done
2626
sudo systemctl stop nabd.socket || echo -n ""
2727
sudo systemctl stop nabd.service || echo -n ""
28-
28+
2929
sudo -u ${owner} touch /tmp/pynab.upgrade
3030
sudo chown ${owner} /tmp/pynab.upgrade
3131
echo "Updating code - 1/?" > /tmp/pynab.upgrade
3232
cd ${root_dir}
3333
if [[ $EUID -ne ${ownerid} ]]; then
34-
sudo -u ${owner} git pull
34+
sudo -u ${owner} git pull --no-rebase
3535
else
36-
git pull
36+
git pull --no-rebase
3737
fi
38-
38+
3939
bash upgrade.sh "install"
4040
;;
4141
"install")

0 commit comments

Comments
 (0)