Ensure target paths exist before running stow.
This commit is contained in:
parent
e42c4a56b7
commit
6218a6c247
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,10 @@ if ! command -v stow &> /dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Make sure directories exist.
|
||||||
|
mkdir -p "${TARGET_DIR}/.ssh"
|
||||||
|
mkdir -p "${TARGET_DIR}/.config"
|
||||||
|
|
||||||
# Install SSH separately, as it requres a different target.
|
# Install SSH separately, as it requres a different target.
|
||||||
do_stow ssh "${TARGET_DIR}/.ssh"
|
do_stow ssh "${TARGET_DIR}/.ssh"
|
||||||
do_stow tmux
|
do_stow tmux
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue