AutoYADM commit: 2024-11-10 00:59:05
This commit is contained in:
parent
61e7c524d1
commit
6b5db25f60
2 changed files with 0 additions and 8 deletions
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
AYE="AutoYADM Error:"
|
AYE="AutoYADM Error:"
|
||||||
AYM="AutoYADM:"
|
AYM="AutoYADM:"
|
||||||
yadm enter
|
|
||||||
# We check not to overwrite the user's env setting
|
# We check not to overwrite the user's env setting
|
||||||
if [ -z "$VAR" ]; then
|
if [ -z "$VAR" ]; then
|
||||||
AUTOYADMPUSH=0
|
AUTOYADMPUSH=0
|
||||||
|
@ -19,7 +18,6 @@ if [ -z "$HOST" ]; then
|
||||||
HOST="$(hostname)"
|
HOST="$(hostname)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yadm config advice.addIgnoredFile false
|
|
||||||
# First we read each path from "tracked"
|
# First we read each path from "tracked"
|
||||||
(while read -r path; do
|
(while read -r path; do
|
||||||
# we disable ignored warning for this subshell
|
# we disable ignored warning for this subshell
|
||||||
|
@ -34,7 +32,6 @@ yadm config advice.addIgnoredFile false
|
||||||
# If neither file nor dir, something is very wrong!
|
# If neither file nor dir, something is very wrong!
|
||||||
else
|
else
|
||||||
echo "$AYE Target must be a directory or a file!"
|
echo "$AYE Target must be a directory or a file!"
|
||||||
yadm config --unset advice.addIgnoredFile
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done) <"$HOME/.config/yadm/tracked"
|
done) <"$HOME/.config/yadm/tracked"
|
||||||
|
@ -47,7 +44,6 @@ if [[ -n $(yadm status --porcelain) ]]; then
|
||||||
if [[ -f "$sshenv" ]]; then
|
if [[ -f "$sshenv" ]]; then
|
||||||
if ((!AUTOYADMPUSH)); then
|
if ((!AUTOYADMPUSH)); then
|
||||||
echo "$AYM Pushing disabled, aborting..."
|
echo "$AYM Pushing disabled, aborting..."
|
||||||
yadm config --unset advice.addIgnoredFile
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Directive to suppress shellcheck warning
|
# Directive to suppress shellcheck warning
|
||||||
|
@ -56,10 +52,8 @@ if [[ -n $(yadm status --porcelain) ]]; then
|
||||||
yadm push
|
yadm push
|
||||||
else
|
else
|
||||||
echo "$AYE ssh-agent environment not found, aborting push..."
|
echo "$AYE ssh-agent environment not found, aborting push..."
|
||||||
yadm config --unset advice.addIgnoredFile
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
yadm config --unset advice.addIgnoredFile
|
|
||||||
echo "$AYM Push successful!"
|
echo "$AYM Push successful!"
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
[pull]
|
[pull]
|
||||||
rebase = false
|
rebase = false
|
||||||
[advice]
|
|
||||||
addIgnoredFile = false
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue