2022-03-29 23:06:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
pushd $(dirname $0)
|
|
|
|
# Checking if pull is successfull
|
|
|
|
git fetch origin
|
|
|
|
LC_ALL=C git status | grep -q "Your branch is up to date"; retval=$?
|
|
|
|
|
|
|
|
if [[ ${retval} -ne 0 ]]; then
|
|
|
|
# Let us update the pip installation
|
|
|
|
git pull
|
|
|
|
# for the sake of consistency, let's make the check_updates.sh script
|
|
|
|
# executable
|
|
|
|
chmod +x check_updates.sh
|
2024-05-22 21:38:57 +00:00
|
|
|
# Updating the environment is left to hatch itself.
|
2022-03-29 23:06:38 +00:00
|
|
|
|
|
|
|
if [[ ${rv} -eq 0 ]]; then
|
|
|
|
# cleanup
|
2022-03-29 23:08:39 +00:00
|
|
|
rm -rf dist build loaih.egg-info
|
|
|
|
fi
|
2022-03-29 23:06:38 +00:00
|
|
|
fi
|
|
|
|
popd
|