Skip to content

Commit

Permalink
INSTALL: making sure the git clone status checks are predictable no m…
Browse files Browse the repository at this point in the history
…atter the locale defined + keeping all git calls immune to explicit rebase config
  • Loading branch information
Commit-La-Grenouille committed Apr 28, 2022
1 parent 4012a0d commit 5a5a950
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ if [ $upgrade -eq 1 -a $makerfaire2018 -eq 0 -a -d ${home_dir}/wm8960 ]; then
echo "Updating sound driver - 2/14" > /tmp/pynab.upgrade
cd ${home_dir}/wm8960
sudo chown -R ${owner} .git
pull=`git pull`
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
pull=$(LANGUAGE=en git pull --no-rebase)
if [ "$pull" != "Already up to date." ]; then
make && sudo make install && make clean
sudo touch /tmp/pynab.upgrade.reboot
Expand All @@ -88,7 +89,8 @@ if [ $upgrade -eq 1 ]; then
if [ -d ${home_dir}/tagtagtag-ears ]; then
cd ${home_dir}/tagtagtag-ears
sudo chown -R ${owner} .git
pull=`git pull`
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
pull=$(LANGUAGE=en git pull --no-rebase)
if [ "$pull" != "Already up to date." ]; then
make && sudo make install && make clean
sudo touch /tmp/pynab.upgrade.reboot
Expand All @@ -112,7 +114,8 @@ if [ $upgrade -eq 1 ]; then
if [ -d ${home_dir}/cr14 ]; then
cd ${home_dir}/cr14
sudo chown -R ${owner} .git
pull=`git pull`
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
pull=$(LANGUAGE=en git pull --no-rebase)
if [ "$pull" != "Already up to date." ]; then
make && sudo make install && make clean
sudo touch /tmp/pynab.upgrade.reboot
Expand All @@ -136,7 +139,8 @@ if [ $upgrade -eq 1 ]; then
if [ -d ${root_dir}/nabblockly ]; then
cd ${root_dir}/nabblockly
sudo chown -R ${owner} .
pull=`git pull`
# Making sure we keep the up-to-date status message consistent no matter the rebase default behavior
pull=$(LANGUAGE=en git pull --no-rebase)
if [ "$pull" != "Already up to date." ]; then
./rebar3 release
fi
Expand Down
4 changes: 2 additions & 2 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ case $step in
done
sudo systemctl stop nabd.socket || echo -n ""
sudo systemctl stop nabd.service || echo -n ""

sudo -u ${owner} touch /tmp/pynab.upgrade
sudo chown ${owner} /tmp/pynab.upgrade
echo "Updating code - 1/?" > /tmp/pynab.upgrade
Expand All @@ -35,7 +35,7 @@ case $step in
else
git pull
fi

bash upgrade.sh "install"
;;
"install")
Expand Down

0 comments on commit 5a5a950

Please sign in to comment.