Skip to content

Commit

Permalink
fix: remove build dir if it exists already
Browse files Browse the repository at this point in the history
  • Loading branch information
gamemaker1 committed Jun 15, 2021
1 parent 3ee09c4 commit 41c46a1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,16 @@ fi
printg " ==> Starting build process..."

# The build dir is the same as if we were installing yeet using yeet
# Clear the build dir (in case it already exists
rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/yeet/"
# Create it again
mkdir -p "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/yeet/"
# Move into the dir
cd "${XDG_CACHE_HOME:-$HOME/.cache}/yeet/build/yeet/"
git clone https://aur.archlinux.org/yeet.git
cd yeet

# Clone the repository
git clone https://aur.archlinux.org/yeet.git .
# Build
makepkg -sic

# No need to print any message after install, the postinstall function already takes care of that
Expand Down

0 comments on commit 41c46a1

Please sign in to comment.