Skip to content

A live bird collage card for your Home Assistant dashboard.

Update dump_logs.sh

Patrick McGuire919a89008c96
diff --git a/scripts/dump_logs.sh b/scripts/dump_logs.sh
index a22fbd9b..f4ca8283 100755
--- a/scripts/dump_logs.sh
+++ b/scripts/dump_logs.sh
@@ -11,7 +11,7 @@ services=$(awk '/service/ && /systemctl/ && !/php/ {print $3}' ${my_dir}/install
# Create services logs
for i in "${services[@]}";do
- if [ -L /etc/systemd/system/multi-user.target.wants/${i} ];then
+ if [ -L "/etc/systemd/system/multi-user.target.wants/${i}" ];then
journalctl -u ${i} -n 100 --no-pager > ${LOG_DIR}/${i}.log
cp -L /etc/systemd/system/multi-user.target.wants/${i} ${LOG_DIR}/${i}
fi