#!/bin/sh
# Check that all of the given directories are empty
for d in "$@"; do
if [ -n "$(ls -1 "$d")" ]; then
exit 1
fi
done
exit 0