make: separate gpg fix from symlink

parent 9f12c3f3
......@@ -18,6 +18,8 @@ debug:
# The `-` before commands are to ignore their errors https://stackoverflow.com/a/2670143/213124
symlink:
stow --restow -vv --ignore ".DS_Store" --target="$(HOME)" --dir="$(DOTFILES)" files
gpg: symlink
# Fix gpg folder/file permissions after symlinking
chmod 700 $(HOME)/.gnupg && chmod 600 $(HOME)/.gnupg/*
......
......@@ -269,7 +269,8 @@ symlink_files() {
cd "$DOTFILES_DIR" &&
cp files/.gitconfig.local $HOME/.gitconfig.local &&
cp files/.zshrc.local $HOME/.zshrc.local &&
make symlink
make symlink &&
make gpg
else
log_error "There is no $DOTFILES_DIR directory"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment