Skip to content

Commit

Permalink
init: check if find is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
89luca89 committed Jan 1, 2022
1 parent 8e0c9e1 commit 0550f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ mount_bind() (
# If not present as package in the container, we want to install it.
shell_pkg="$(basename "${SHELL:-"bash"}")"
# Check if dependencies are met for the script to run.
if ! command -v mount || ! command -v passwd ||
! command -v sudo || ! command -v useradd ||
! command -v usermod || ! command -v "${shell_pkg}"; then
if ! command -v mount || ! command -v mount || ! command -v passwd ||
! command -v sudo || ! command -v useradd || ! command -v usermod ||
! command -v "${shell_pkg}"; then

# Detect the available package manager
# install minimal dependencies needed to bootstrap the container:
Expand Down

0 comments on commit 0550f86

Please sign in to comment.