From 99a58d61a2671e29d5f16d63a83590d549655518 Mon Sep 17 00:00:00 2001 From: Ken Matsui <26405363+ken-matsui@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:25:41 -0500 Subject: [PATCH] Setup: handle the case .config does not exist --- setup/common/config.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/common/config.sh b/setup/common/config.sh index f1d98be..a1eb602 100755 --- a/setup/common/config.sh +++ b/setup/common/config.sh @@ -18,6 +18,8 @@ backup_and_link() { ln -s "$DOTSPATH/$1" "$TARGET" } +mkdir -p "$HOME/.config" + OS_NAME="$(uname -s)" if [ "$OS_NAME" = Darwin ]; then # TARGET=$HOME/Library/Application Support/Code