aptorphan 1>&2
echo "# aptitude search ~U"
- aptitude search ~U 1>&2
+ aptitude search ~U 1>&2 || true
fi
if is_arch; then
cd "$(dirname "$(readlink -f "$0")")"
for i in ./*; do
- if [ "$i" != "$(basename "$0")" ]; then
+ if [ "$(basename "$i")" != "$(basename "$0")" ]; then
if ! "$i"; then
echo -e "\n^^ FAILED! $(hostname) $PRETTY_NAME -- $i ^^\n"
exit 1
#!/bin/bash
-if systemctl is-failed -q '*'; then
- echo -e "# systemctl --failed"
- systemctl --failed
- exit 1
-else
+if systemctl is-system-running > /dev/null; then
exit 0
fi
+
+echo -e "# systemctl --failed"
+systemctl --failed
+exit 1
--- /dev/null
+#!/bin/bash
+
+if systemctl --user is-system-running > /dev/null; then
+ exit 0
+fi
+
+if systemctl --user is-system-running 2>&1 | grep -q 'Failed to connect to bus'; then
+ exit 0
+fi
+
+echo -e "# systemctl --user --failed"
+systemctl --user --failed
+exit 1