Skip to content

Commit

Permalink
Adapt to Sh instead of Bash
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanways committed Jan 14, 2024
1 parent 863afbe commit 738a742
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions includes/enter_box.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ enter_box() {

export dir=/var/pandoras

# Enter the chroot using the shell defined in the main system
chroot $dir/environment /bin/su -

# Enter the chroot using sh as shell
#chroot $dir/environment /bin/sh
}

if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion includes/list_filesystems.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ list_filesystems() {
$(find "$dir/images" -type f -name "*.mnt" -exec basename {} .mnt \; | less)
"

# If your device does not support or have find, switch to ls:
# If your Linux version does not support or have find, switch from find to ls:
#echo "Your chroot images:
#$(ls $dir/images/ | sed 's/.mnt//g' | less)
#"
Expand Down

0 comments on commit 738a742

Please sign in to comment.