Skip to content

Commit

Permalink
init: do not fail in "Setting up read-only mounts" if findmnt does no…
Browse files Browse the repository at this point in the history
…t exist (#1454)
  • Loading branch information
phoppermann authored Jun 27, 2024
1 parent 24716c1 commit 31bb03f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ get_locked_mount_flags()
prev=""
locked_flags=""

# If findmnt does not exist, exit
if ! command -v findmnt 2> /dev/null > /dev/null; then
return 0
fi

# If we can't read the file/directory, exit
if ! ls "${src}" 2> /dev/null > /dev/null; then
return 0
Expand Down

0 comments on commit 31bb03f

Please sign in to comment.