git
This commit is contained in:
parent
f52d7f0403
commit
a037d596a8
1 changed files with 2 additions and 2 deletions
4
app.sh
4
app.sh
|
@ -42,7 +42,7 @@ while true ; do
|
||||||
|
|
||||||
echo clone
|
echo clone
|
||||||
pwd
|
pwd
|
||||||
git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet
|
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git clone "$GIT_REPO_URL" "$GIT_REPO_PATH" --quiet
|
||||||
cd "$GIT_REPO_PATH"
|
cd "$GIT_REPO_PATH"
|
||||||
|
|
||||||
# Save the current value of IFS to restore later
|
# Save the current value of IFS to restore later
|
||||||
|
@ -74,7 +74,7 @@ while true ; do
|
||||||
git commit -m "update config_${FQDN}" --quiet
|
git commit -m "update config_${FQDN}" --quiet
|
||||||
done <<< "$DEVICES"
|
done <<< "$DEVICES"
|
||||||
|
|
||||||
git push
|
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GIT_REPO_DEPLOY_KEY" git push
|
||||||
|
|
||||||
# Restore the original IFS value
|
# Restore the original IFS value
|
||||||
IFS=$OLD_IFS
|
IFS=$OLD_IFS
|
||||||
|
|
Loading…
Reference in a new issue