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 | 9a4bbcd930afa54bc605e3020fb38353161e5a84 (patch) | |
tree | 7ebd5eb5116ee2c0e2969377be54fe8fc9571e70 /build | |
parent | ee44f9e112a71ef6fa5aacdf65a43862a5a89279 (diff) |
Squashed 'gitstatus/' changes from 0127fd26a..cc956ca78
cc956ca78 interrupt p10k instant prompt before printing "gitstatus failed to initialize" error
db3603bc8 improve "gitstatus failed to initialize" error message
e164594ea work around bugs in cygwin
55af96ade cleanup + todo
0e70dbc56 add an empty line before the error message
git-subtree-dir: gitstatus
git-subtree-split: cc956ca7878ef6d00bb1f35861864d0a40ffac75
Diffstat (limited to 'build')
-rwxr-xr-x | build | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |