alpinelinux / alpine-chroot-install

Install Alpine Linux in chroot with a breeze. Build ARM on Travis CI or any other x86_64 CI.
MIT License
290 stars 59 forks source link

Test bind directory and remove one use of cat #35

Closed sodface closed 2 years ago

sodface commented 2 years ago

Testing that $BIND_DIR is a valid directory is a good check I think prior to trying to mount it and it also let's you pass an invalid path as a way to prevent mounting a directory in the chroot even when running the script under /home, eg. -i none

Other change is to use cut directly instead of cat.

jirutka commented 2 years ago

I merged the first commit (6ddc4fee08ee0c8499702bad268f8d55b972c74b) into master. Thanks!