This commit is contained in:
Jaredy899 2025-03-05 20:56:38 -05:00 committed by GitHub
parent ce73cfe1aa
commit d108768b17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ view_all_services() {
"$ESCALATION_TOOL" rc-update show | more "$ESCALATION_TOOL" rc-update show | more
;; ;;
sv) sv)
find /etc/sv/ -type d -maxdepth 1 -printf "%f\n" | grep -v "^$" | more ls -1 /etc/sv/ | more
;; ;;
esac esac
} }
@ -54,7 +54,7 @@ view_enabled_services() {
"$ESCALATION_TOOL" rc-update show -v | grep "\[" | more "$ESCALATION_TOOL" rc-update show -v | grep "\[" | more
;; ;;
sv) sv)
find /var/service/ -type d -maxdepth 1 -printf "%f\n" | grep -v "^$" | more ls -1 /var/service/ | more
;; ;;
esac esac
} }
@ -70,7 +70,7 @@ view_disabled_services() {
"$ESCALATION_TOOL" rc-update show -v | grep -v "\[" | more "$ESCALATION_TOOL" rc-update show -v | grep -v "\[" | more
;; ;;
sv) sv)
comm -23 <(find /etc/sv/ -type d -maxdepth 1 -printf "%f\n" | grep -v "^$" | sort) <(find /var/service/ -type d -maxdepth 1 -printf "%f\n" | grep -v "^$" | sort) | more ls -1 /etc/sv/ | grep -v "$(ls -1 /var/service/)" | more
;; ;;
esac esac
} }