From 5a49125331eea932fb31c6e1b1d6cba8180aea0c Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Fri, 5 Aug 2022 12:24:30 +0100 Subject: [PATCH] fix(setup): create directories if they don't exist --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index 351d149..b96529a 100755 --- a/setup.sh +++ b/setup.sh @@ -2,6 +2,7 @@ echo Compiling with cargo... cargo build --release echo Copying to $HOME/.local/bin +mkdir -p $HOME/.local/bin/ cp target/release/fsh $HOME/.local/bin/ enable_hostname="0" @@ -14,6 +15,7 @@ do done if [ ! -f $HOME/.config/fish/functions/fish_prompt.fish ]; then + mkdir -p $HOME/.config/fish/functions/ if [ $enable_hostname = "1" ]; then echo "Creating $HOME/.config/fish/functions/fish_prompt.fish" echo "function fish_prompt