Skip to content

Commit

Permalink
iiab-update: Skip Admin Console ./install if already up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
holta committed Jul 19, 2024
1 parent cdd94f8 commit af36600
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/iiab-update
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,16 @@
echo -e "\n\n\e[41;1mIn /opt/iiab/iiab-admin-console, (1) 'git branch' MUST show current branch 'master' and (2) 'git status' must show NO MODIFIED FILES.\e[0m\n\n"
exit 1
fi
GITHASH1=$(git rev-parse HEAD)
echo -e "\n\e[4mNow running: git pull https://github.com/iiab/iiab-admin-console --no-rebase --no-edit\e[0m\n"
git pull https://github.com/iiab/iiab-admin-console --no-rebase --no-edit
echo -e "\n\e[4mNow running: ./install\e[0m\n"
./install
GITHASH2=$(git rev-parse HEAD)
if [[ $GITHASH1 != $GITHASH2 ]]; then
echo -e "\n\e[4mNow running: ./install\e[0m\n"
./install
else
echo -e "\n\e[33mSkipping Admin Console './install' — as it appears up-to-date!\e[0m"
fi
fi
fi

Expand Down

0 comments on commit af36600

Please sign in to comment.