Loading checkservices +3 −2 Original line number Diff line number Diff line Loading @@ -124,8 +124,9 @@ get_broken_maps() { continue } # only file mapped as executable # do not use awk fields sepration, path may contain spaces deleted="$(awk '/^\S+ ..x. .+\(deleted\)$/ {sub(/^(\S+\s+){5}/,""); sub(/ \(deleted\)$/,""); print}' "$maps_path")" # use awk fields separation with caution, path may contain spaces # deleted /memfd: paths don't mean process need to be restarted (e.g. jellyfin) deleted="$(awk '/^\S+ ..x. .+\(deleted\)$/ && $6 !~ /^\/memfd:/ {print}' "$maps_path")" if [[ $deleted ]]; then printf "%s\n" $service break Loading Loading
checkservices +3 −2 Original line number Diff line number Diff line Loading @@ -124,8 +124,9 @@ get_broken_maps() { continue } # only file mapped as executable # do not use awk fields sepration, path may contain spaces deleted="$(awk '/^\S+ ..x. .+\(deleted\)$/ {sub(/^(\S+\s+){5}/,""); sub(/ \(deleted\)$/,""); print}' "$maps_path")" # use awk fields separation with caution, path may contain spaces # deleted /memfd: paths don't mean process need to be restarted (e.g. jellyfin) deleted="$(awk '/^\S+ ..x. .+\(deleted\)$/ && $6 !~ /^\/memfd:/ {print}' "$maps_path")" if [[ $deleted ]]; then printf "%s\n" $service break Loading