Remove testaze if add-on was restarted during test

https://github.com/alexbelgium/hassio-addons/issues/1673
This commit is contained in:
Alexandre
2024-12-17 07:24:25 +01:00
committed by GitHub
parent 6d6a711207
commit 50eb45fd50

View File

@@ -19,6 +19,7 @@ test_mount () {
fi
# Exit if can't write
[[ -e "/mnt/$diskname/testaze" ]] && rm -r "/mnt/$diskname/testaze"
# shellcheck disable=SC2015
mkdir "/mnt/$diskname/testaze" && touch "/mnt/$diskname/testaze/testaze" && rm -r "/mnt/$diskname/testaze" || ERROR_MOUNT=true
if [[ "$ERROR_MOUNT" == "true" ]]; then