make-sandboxed: don't try to wrap directories

whoops. test -x is true for directories
This commit is contained in:
Colin 2024-02-28 16:17:48 +00:00
parent 70229e0839
commit a4248fd5cc

View File

@ -119,7 +119,7 @@ let
crawlAndWrap() {
_dir="$1"
for _p in $(ls "$_dir/"); do
if [ -x "$_dir/$_p" ]; then
if [ -x "$_dir/$_p" ] && ! [ -d "$_dir/$_p" ]; then
sandboxWrap "$_dir" "$_p"
elif [ -d "$_dir/$_p" ]; then
crawlAndWrap "$_dir/$_p"