From 6f207d438e1a98e3470a87448954a277004cbfdb Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 26 Mar 2023 15:31:39 +0200 Subject: [PATCH] Make sure go directories exists --- deploy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy.sh b/deploy.sh index 432374b..ec3e28e 100644 --- a/deploy.sh +++ b/deploy.sh @@ -98,6 +98,14 @@ configure_fish () { fi } +configure_go () { + fish -c source $HOME/.profile + + if ( grep -q GOPATH "$HOME/.profile" ) && [ ! -d $GOPATH ]; then + mkdir -p $GOPATH $GOPATH/{bin,pkg} + fi +} + # Promps for installing custom SF Mono font # patched with devicons + more get_input_df_false "Install custom font? (y/N) " install_font @@ -121,3 +129,4 @@ get_input_df_true "Move config files to $HOME/.config? (Y/n) " move_config_files echo "Configurating fish shell" configure_fish +configure_go