diff --git a/app/sbin/checkFilestore b/app/sbin/checkFilestore index 7670187..7301056 100755 --- a/app/sbin/checkFilestore +++ b/app/sbin/checkFilestore @@ -26,10 +26,10 @@ echo "Docker mapped to : ${MOUNT_HOST:-}" echo "Hashing container filestore..." MD5_CONTAINER=$(doas docker exec "$UUID" sh -c \ - "find $FILESTORE_CONTAINER -type f | sort | xargs md5sum 2>/dev/null" | md5sum | cut -d' ' -f1) + "find $FILESTORE_CONTAINER -type f | sort | xargs md5sum 2>/dev/null | awk '{print \$1}'" | md5sum | cut -d' ' -f1) echo "Hashing host filestore..." -MD5_HOST=$(find "$FILESTORE_HOST" -type f | sort | xargs md5sum 2>/dev/null | md5sum | cut -d' ' -f1) +MD5_HOST=$(find "$FILESTORE_HOST" -type f | sort | xargs md5sum 2>/dev/null | awk '{print $1}' | md5sum | cut -d' ' -f1) echo "Container : $MD5_CONTAINER" echo "Host : $MD5_HOST"