diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2021-04-28 22:26:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 22:26:39 +0200 |
commit | e4fafc61dd966b6077f4cd575c575473f0643d88 (patch) | |
tree | 764f11a02955b508ff9e607eba905cb45d04651a /apps/compiler/includes/functions.sh | |
parent | 5954d9c739778919bdeb1affe613d69eeb7c2774 (diff) |
fix(Docker): windows improvements and permissions fix (#5444)
Diffstat (limited to 'apps/compiler/includes/functions.sh')
-rw-r--r-- | apps/compiler/includes/functions.sh | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/compiler/includes/functions.sh b/apps/compiler/includes/functions.sh index 7d4bf5176a..1e3c83c6ba 100644 --- a/apps/compiler/includes/functions.sh +++ b/apps/compiler/includes/functions.sh @@ -1,16 +1,11 @@ function comp_clean() { - echo "Cleaning build files" + DIRTOCLEAN=${BUILDPATH:-var/build/obj} + PATTERN="$DIRTOCLEAN/*" - CWD=$(pwd) - - cd $BUILDPATH + echo "Cleaning build files in $DIRTOCLEAN" - make -f Makefile clean || true - make clean || true - find -iname '*cmake*' -not -name CMakeLists.txt -exec rm -rf {} \+ - - cd $CWD + [ -d "$DIRTOCLEAN" ] && rm -rf $PATTERN } function comp_configure() { |