Skip to content

Commit

Permalink
remove temp directory if cloned successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
Logicer16 committed Dec 20, 2024
1 parent e8ad52d commit 82a0b1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

( cd /tmp/ && \
git clone https://github.com/Logicer16/pam-watchid.git && \
cd "$(basename "$_" .git)" && \
make $1 && \
cd "$(basename "$_" .git)" && CLONE_SUCCESS="true" && \
make $1
# cleanup
TMP=`pwd -P` && cd "`dirname $TMP`" && rm -rf "./`basename $TMP`" && unset TMP
[[ "$CLONE_SUCCESS" == "true" ]] && TMP=`pwd -P` && cd "`dirname $TMP`" && rm -rf "./`basename $TMP`" && unset TMP
)

0 comments on commit 82a0b1e

Please sign in to comment.