refactor .dockerignore; fix

This commit is contained in:
Daniel Langbein 2021-06-12 17:52:54 +02:00
parent f297d5bc48
commit 32aa0cbea9
3 changed files with 6 additions and 3 deletions

View File

@ -22,11 +22,11 @@ function isEmptyDir() {
# arg $1: directory to check # arg $1: directory to check
if [ -z "$(find "${1}" -maxdepth 0 -type d -empty 2>/dev/null)" ]; then if [ -z "$(find "${1}" -maxdepth 0 -type d -empty 2>/dev/null)" ]; then
# "Empty directory"
return 0
else
# echo "Not empty or NOT a directory" # echo "Not empty or NOT a directory"
return 1 return 1
else
# "Empty directory"
return 0
fi fi
} }

3
build-pkg/.dockerignore Normal file
View File

@ -0,0 +1,3 @@
*
!Dockerfile
!run.sh