#!/bin/sh
set -eu
for f in *.xz; do
    echo "Unzipping $f"
    xz -d -v $f
    if ! [ $? -eq 0 ]; then
        echo "Unzipping failed!"
    fi
done
