fix(setup): create directories if they don't exist

This commit is contained in:
Ashhhleyyy 2022-08-05 12:24:30 +01:00
parent 22e17050b6
commit 5a49125331
Signed by: ash
GPG Key ID: 83B789081A0878FB
1 changed files with 2 additions and 0 deletions

View File

@ -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