From 3ebe8cf4de5c77f26f93ac40bdc596c0c38451f5 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sun, 22 Oct 2023 10:41:42 -0400 Subject: [PATCH] refactoring --- usr/bin/remount-secure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/bin/remount-secure b/usr/bin/remount-secure index 79f42b7..577c2ce 100755 --- a/usr/bin/remount-secure +++ b/usr/bin/remount-secure @@ -103,7 +103,7 @@ remount_secure() { fi fi - if echo "$mount_output" | grep --quiet "$mount_folder " ; then + if findmnt --noheadings "$mount_folder " >/dev/null ; then ## Already mounted. Using remount. $output_command INFO: Executing: mount --options "remount,${intended_mount_options}" "$mount_folder" mount --options "remount,${intended_mount_options}" "$mount_folder" || exit_code=100