From 6218a6c247ef258b2e0053a53e44207c1eb8343a Mon Sep 17 00:00:00 2001 From: Hans Goor Date: Fri, 16 Aug 2024 21:42:43 +0000 Subject: [PATCH] Ensure target paths exist before running stow. --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index c3af461..faed568 100755 --- a/install.sh +++ b/install.sh @@ -21,6 +21,10 @@ 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