Fix lint suggestions for git-sync-all
Use subshell for each directory rather than cd and cd back Add git-sync option to sync new files
This commit is contained in:
parent
ba9411fb9f
commit
eeb8972fe6
|
@ -1,10 +1,9 @@
|
||||||
git -C $HOME/.emacs/ pull --ff-only
|
git -C "$HOME/.emacs/" pull --ff-only
|
||||||
|
|
||||||
for DIRECTORY in $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do
|
for DIRECTORY in $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do
|
||||||
echo "--- $DIRECTORY ---"
|
echo "--- $DIRECTORY ---"
|
||||||
mkdir -p $DIRECTORY
|
(
|
||||||
cd $DIRECTORY
|
cd "$DIRECTORY" || exit
|
||||||
git config --bool branch.main.sync true
|
git-sync -ns
|
||||||
git-sync
|
)
|
||||||
cd -
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue