wp-uninstalled: error with usage information if no command is given

This commit is contained in:
Peter Hutterer
2021-10-15 14:10:09 +10:00
committed by George Kiagiadakis
parent c2b06feef2
commit 4c5bf21a96

View File

@@ -33,6 +33,11 @@ done
shift $((OPTIND-1))
if [ $# -eq 0 ]; then
echo "Usage: $(basename ${BASH_SOURCE[0]}) [options] <wireplumber|wpctl|wpexec|...>"
exit 1
fi
if [ ! -d ${BUILDDIR} ]; then
echo "Invalid build directory: ${BUILDDIR}"
exit 1