mirror of
https://github.com/ivanilves/xiringuito.git
synced 2025-05-20 09:10:10 -07:00
Do not touch "discover-routes", if it does not exist!
This commit is contained in:
parent
f19ba3f42e
commit
11c09aeba4
@ -2,7 +2,9 @@
|
||||
#
|
||||
# Execute *before* doing anything
|
||||
#
|
||||
if [[ "$(sha1sum discover-routes | cut -f1 -d' ')" == "246d9bbeded14ef58e5bc103af0f8c2e8b2e8cf2" ]]; then
|
||||
echo "!!! Rewriting stale 'discover-routes' script"
|
||||
cp discover-routes.aws.example discover-routes
|
||||
if [[ -f discover-routes ]]; then
|
||||
if [[ "$(sha1sum discover-routes | cut -f1 -d' ')" == "246d9bbeded14ef58e5bc103af0f8c2e8b2e8cf2" ]]; then
|
||||
echo "!!! Rewriting stale 'discover-routes' script"
|
||||
cp discover-routes.aws.example discover-routes
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user