summaryrefslogtreecommitdiff
path: root/src/backend/functions_makepkg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/functions_makepkg.sh')
-rw-r--r--src/backend/functions_makepkg.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/functions_makepkg.sh b/src/backend/functions_makepkg.sh
index 47b007f..1c16d45 100644
--- a/src/backend/functions_makepkg.sh
+++ b/src/backend/functions_makepkg.sh
@@ -2,16 +2,18 @@
jailpkgprep () {
while : true ; do
- if [[ ! -d "$ropath" && ! -d "$rwpath" && ! -d "$workpath" && ! -d "$overlaypath" ]] ; then
+ if [[ ! -d "$ropath" || ! -d "$rwpath" || ! -d "$workpath" || ! -d "$overlaypath" ]] ; then
+ export local i
for i in "$ropath" "$rwpath" "$workpath" "$overlaypath" ; do
mkdir "$i"
done
jailpkgmnt
break
- elif [[ -d "$ropath" && -d "$rwpath" && -d "$workpath" && -d "$overlaypath" ]] ; then
+ elif [[ -d "$ropath" || -d "$rwpath" || -d "$workpath" || -d "$overlaypath" ]] ; then
jailpkgdmnt
- for i in "$ropath" "$rwpath" "$workpath" "$overlaypath" ; do
- rm -rf "$i"
+ export local j
+ for j in "$ropath" "$rwpath" "$workpath" "$overlaypath" ; do
+ rm -rf "$j"
done
continue
fi