mirror of
https://github.com/86Box/86Box.git
synced 2026-02-24 20:35:32 -07:00
Jenkins: Recreate output directory if it was deleted
This commit is contained in:
@@ -172,6 +172,9 @@ then
|
||||
# Clean local tree of gitignored files.
|
||||
git clean -dfX
|
||||
|
||||
# Recreate output directory if it was removed by git clean.
|
||||
[ ! -d "$cwd" ] && mkdir -p "$cwd"
|
||||
|
||||
# Save current HEAD commit to VERSION.
|
||||
git log --stat -1 > VERSION || rm -f VERSION
|
||||
|
||||
|
||||
Reference in New Issue
Block a user