diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-05-26 09:37:25 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-05-26 09:37:25 +0300 |
commit | 619ddaf6f171042fe33370738cb074d0abd1a0b1 (patch) | |
tree | 87ce7de394d4ecb936444d5a4eac9d99933c6dcb /gitstatus/build | |
parent | 2ade5d786b5b2a700964a6cd418cdaaca88fc55b (diff) | |
parent | 9a4bbcd930afa54bc605e3020fb38353161e5a84 (diff) |
Merge commit '9a4bbcd930afa54bc605e3020fb38353161e5a84'
Diffstat (limited to 'gitstatus/build')
-rwxr-xr-x | gitstatus/build | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gitstatus/build b/gitstatus/build index 25dbb5e9..2cb63f74 100755 --- a/gitstatus/build +++ b/gitstatus/build @@ -56,9 +56,12 @@ appname=gitstatusd-"$gitstatus_kernel"-"$gitstatus_arch" libgit2_tmp="$outdir"/deps/"$appname".libgit2.tmp cleanup() { - cd / - command rm -rf -- "$workdir" "$outdir"/usrbin/"$appname".tmp "$libgit2_tmp" trap - INT QUIT TERM ILL PIPE + cd / + if ! command rm -rf -- "$workdir" "$outdir"/usrbin/"$appname".tmp "$libgit2_tmp"; then + command sleep 5 + command rm -rf -- "$workdir" "$outdir"/usrbin/"$appname".tmp "$libgit2_tmp" + fi } trap cleanup INT QUIT TERM ILL PIPE |