Skip to content

Commit

Permalink
mount: Fix similar path mount grep
Browse files Browse the repository at this point in the history
  • Loading branch information
tschettervictor authored Jan 18, 2025
1 parent 03214c4 commit bbb1555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/share/bastille/mount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ for _jail in ${JAILS}; do

# Check if mount point has already been added
_existing_mount="$(echo ${_fullpath_fstab} 2>/dev/null | sed 's#\\#\\\\#g')"
if grep -Eq "[[:blank:]]${_existing_mount}.*[[:blank:]]" "${bastille_jailsdir}/${_jail}/fstab"; then
if grep -Eq "[[:blank:]]${_existing_mount}[[:blank:]]" "${bastille_jailsdir}/${_jail}/fstab"; then
warn "Mountpoint already present in ${bastille_jailsdir}/${_jail}/fstab"
grep -E "[[:blank:]]${_existing_mount}" "${bastille_jailsdir}/${_jail}/fstab"
continue
Expand Down

0 comments on commit bbb1555

Please sign in to comment.