mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
refactor .dockerignore; fix
This commit is contained in:
parent
f297d5bc48
commit
32aa0cbea9
@ -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
3
build-pkg/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*
|
||||||
|
!Dockerfile
|
||||||
|
!run.sh
|
Loading…
Reference in New Issue
Block a user