Skip to content

Commit

Permalink
use read IFS instead of for loop in case of space in dir names
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Feb 22, 2024
1 parent 7d1edfe commit 1250bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions try
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,15 @@ do
done
## now we deal with symlinks
for mountpoint in $(cat "$DIRS_AND_MOUNTS")
while IFS="" read -r mountpoint
do
## We're only interested in symlinks
if ! [ -L "$mountpoint" ]
then
continue
fi
ln -s $(readlink "$mountpoint") "$sandbox_dir/temproot/$mountpoint"
done
done <"$DIRS_AND_MOUNTS"
## Mount a few select devices in /dev
mount_devices "$SANDBOX_DIR"
Expand Down

0 comments on commit 1250bb5

Please sign in to comment.