wp-uninstalled: error with usage information if no command is given
This commit is contained in:

committed by
George Kiagiadakis

parent
c2b06feef2
commit
4c5bf21a96
@@ -33,6 +33,11 @@ done
|
|||||||
|
|
||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo "Usage: $(basename ${BASH_SOURCE[0]}) [options] <wireplumber|wpctl|wpexec|...>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d ${BUILDDIR} ]; then
|
if [ ! -d ${BUILDDIR} ]; then
|
||||||
echo "Invalid build directory: ${BUILDDIR}"
|
echo "Invalid build directory: ${BUILDDIR}"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user