git-sync-all ensure directory exists
This commit is contained in:
parent
902fb279a8
commit
ad894d1236
|
@ -229,6 +229,7 @@
|
||||||
git-sync-all () {
|
git-sync-all () {
|
||||||
for DIRECTORY in $HOME/.nixos $HOME/.emacs $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do
|
for DIRECTORY in $HOME/.nixos $HOME/.emacs $HOME/.password-store $HOME/.elfeed $HOME/Documents/Org $HOME/Documents/References; do
|
||||||
echo "--- $DIRECTORY ---"
|
echo "--- $DIRECTORY ---"
|
||||||
|
mkdir -p $DIRECTORY
|
||||||
cd $DIRECTORY && git-sync
|
cd $DIRECTORY && git-sync
|
||||||
cd -
|
cd -
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue