Skip to content

Commit

Permalink
Fix the issue with the installation script when deleting directories …
Browse files Browse the repository at this point in the history
…from the current machine
  • Loading branch information
vladpunko committed Aug 23, 2021
1 parent 9a17457 commit 6ccfbcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ gcc -Wall -Wextra -Werror -Wno-unused-parameter "${workdir}/detach.c" -o "${work
install -m 755 "${workdir}/detach" /usr/local/bin/detach

_cleanup() {
rm -r -- "${workdir}"
rm -f -r -- "${workdir}"
}
trap _cleanup EXIT
trap _cleanup 0 1 2 3 6

0 comments on commit 6ccfbcc

Please sign in to comment.