make-sandboxed: don't try to wrap directories
whoops. test -x is true for directories
This commit is contained in:
parent
70229e0839
commit
a4248fd5cc
|
@ -119,7 +119,7 @@ let
|
||||||
crawlAndWrap() {
|
crawlAndWrap() {
|
||||||
_dir="$1"
|
_dir="$1"
|
||||||
for _p in $(ls "$_dir/"); do
|
for _p in $(ls "$_dir/"); do
|
||||||
if [ -x "$_dir/$_p" ]; then
|
if [ -x "$_dir/$_p" ] && ! [ -d "$_dir/$_p" ]; then
|
||||||
sandboxWrap "$_dir" "$_p"
|
sandboxWrap "$_dir" "$_p"
|
||||||
elif [ -d "$_dir/$_p" ]; then
|
elif [ -d "$_dir/$_p" ]; then
|
||||||
crawlAndWrap "$_dir/$_p"
|
crawlAndWrap "$_dir/$_p"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user