Fix order of checks in sync-emacs
This commit is contained in:
parent
86938499ad
commit
d991c9acfb
0
system/home/scripts/shell/rsync-local-config.sh
Executable file → Normal file
0
system/home/scripts/shell/rsync-local-config.sh
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
||||||
# Clone ~/.config/emacs/ if it doesn't exist
|
# Clone ~/.config/emacs/ if it doesn't exist
|
||||||
EMACS_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/emacs"
|
EMACS_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/emacs"
|
||||||
if [ ! -d "$EMACS_DIR" ]; then
|
if [ -d "$EMACS_DIR" ]; then
|
||||||
git -C "$EMACS_DIR" pull --ff --ff-only
|
git -C "$EMACS_DIR" pull --ff --ff-only
|
||||||
else
|
else
|
||||||
git clone "https://git.xenia.me.uk/pixelifytica/emacs.git" "$EMACS_DIR"
|
git clone "https://git.xenia.me.uk/pixelifytica/emacs.git" "$EMACS_DIR"
|
||||||
|
|
0
system/home/scripts/shell/sync-git.sh
Executable file → Normal file
0
system/home/scripts/shell/sync-git.sh
Executable file → Normal file
0
system/home/scripts/shell/xdg-query-program.sh
Executable file → Normal file
0
system/home/scripts/shell/xdg-query-program.sh
Executable file → Normal file
Loading…
Reference in a new issue