Moved push successful message inside conditional

This commit is contained in:
Daniel Fichtinger 2024-11-11 10:51:23 -05:00
parent 801686876d
commit 31bfbde0c8

View file

@ -53,10 +53,9 @@ if [[ -n $(yadm status --porcelain) ]]; then
# shellcheck source=/dev/null # shellcheck source=/dev/null
source "$sshenv" source "$sshenv"
yadm push yadm push
echo "$AYM Push successful!"
else else
echo "$AYE ssh-agent environment not found, aborting push..." echo "$AYE ssh-agent environment not found, aborting push..."
exit 1 exit 1
fi fi
fi fi
echo "$AYM Push successful!"