begining work on the chroot option

This commit is contained in:
levasseur
2021-10-15 18:39:16 +02:00
parent 5fd16fbd69
commit 53c546fe20
3 changed files with 19 additions and 0 deletions

View File

@@ -157,6 +157,10 @@ isdirempty()
{
dir=$1
if [[ -f $dir ]]; then
prnt E "isdirempty():The given parameter is not a directory."
die 15
fi
if [[ ! -d $dir ]]; then
return 0
fi