Skip to content

Commit b36c32c

Browse files
INSTALL: making sure the git clone status checks are predictable no matter the locale defined + keeping all git calls immune to explicit rebase config
1 parent 4012a0d commit b36c32c

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=`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
make && sudo make install && make clean
8283
sudo touch /tmp/pynab.upgrade.reboot
@@ -88,7 +89,8 @@ if [ $upgrade -eq 1 ]; then
8889
if [ -d ${home_dir}/tagtagtag-ears ]; then
8990
cd ${home_dir}/tagtagtag-ears
9091
sudo chown -R ${owner} .git
91-
pull=`git pull`
92+
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
93+
pull=$(LANGUAGE=en git pull --no-rebase)
9294
if [ "$pull" != "Already up to date." ]; then
9395
make && sudo make install && make clean
9496
sudo touch /tmp/pynab.upgrade.reboot
@@ -112,7 +114,8 @@ if [ $upgrade -eq 1 ]; then
112114
if [ -d ${home_dir}/cr14 ]; then
113115
cd ${home_dir}/cr14
114116
sudo chown -R ${owner} .git
115-
pull=`git pull`
117+
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
118+
pull=$(LANGUAGE=en git pull --no-rebase)
116119
if [ "$pull" != "Already up to date." ]; then
117120
make && sudo make install && make clean
118121
sudo touch /tmp/pynab.upgrade.reboot
@@ -135,8 +138,9 @@ if [ $upgrade -eq 1 ]; then
135138
echo "Updating NabBlockly - 5/14" > /tmp/pynab.upgrade
136139
if [ -d ${root_dir}/nabblockly ]; then
137140
cd ${root_dir}/nabblockly
138-
sudo chown -R ${owner} .
139-
pull=`git pull`
141+
sudo chown -R ${owner}
142+
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
143+
pull=$(LANGUAGE=en git pull --no-rebase)
140144
if [ "$pull" != "Already up to date." ]; then
141145
./rebar3 release
142146
fi

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)