Ensure target paths exist before running stow.
This commit is contained in:
parent
e42c4a56b7
commit
1eb8de172b
1 changed files with 9 additions and 5 deletions
14
install.sh
14
install.sh
|
|
@ -21,11 +21,15 @@ if ! command -v stow &> /dev/null; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Make sure directories exist.
|
||||
mkdir -p "${TARGET_DIR}/.ssh"
|
||||
mkdir -p "${TARGET_DIR}/.config"
|
||||
|
||||
# Install SSH separately, as it requres a different target.
|
||||
do_stow ssh "${TARGET_DIR}/.ssh"
|
||||
do_stow tmux
|
||||
do_stow git
|
||||
do_stow zsh
|
||||
do_stow nvim "${TARGET_DIR}/.config"
|
||||
do_stow ssh "${TARGET_DIR}/.ssh" || true
|
||||
do_stow tmux || true
|
||||
do_stow git || true
|
||||
do_stow zsh || true
|
||||
do_stow nvim "${TARGET_DIR}/.config" || true
|
||||
|
||||
echo "[+] Installed!"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue