Handle failures updating Git repo packages gracefully
This commit is contained in:
parent
7c036ccd7f
commit
aa92f5c88a
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ IFS=$'\n\t'
|
||||||
REPO_DIR="$(systemd-path user-state-private)"/agentbox
|
REPO_DIR="$(systemd-path user-state-private)"/agentbox
|
||||||
if [ -d "${REPO_DIR}" ]
|
if [ -d "${REPO_DIR}" ]
|
||||||
then
|
then
|
||||||
git -C "${REPO_DIR}" pull
|
git -C "${REPO_DIR}" pull || true
|
||||||
else
|
else
|
||||||
cd "$(systemd-path user-state-private)" || exit
|
cd "$(systemd-path user-state-private)" || exit
|
||||||
git clone https://github.com/libohad-dev/agentbox
|
git clone https://github.com/libohad-dev/agentbox
|
||||||
|
|
@ -17,7 +17,7 @@ fi
|
||||||
REPO_DIR="$(systemd-path user-state-private)"/git-sync
|
REPO_DIR="$(systemd-path user-state-private)"/git-sync
|
||||||
if [ -d "${REPO_DIR}" ]
|
if [ -d "${REPO_DIR}" ]
|
||||||
then
|
then
|
||||||
git -C "${REPO_DIR}" pull
|
git -C "${REPO_DIR}" pull || true
|
||||||
else
|
else
|
||||||
cd "$(systemd-path user-state-private)" || exit
|
cd "$(systemd-path user-state-private)" || exit
|
||||||
git clone https://github.com/simonthum/git-sync
|
git clone https://github.com/simonthum/git-sync
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue