Fix argument defaulting in install_xrdp_build_dependencies_with_apt.sh

This commit is contained in:
Alexandre Quesnel
2021-03-28 21:57:06 +00:00
parent f5e4b53b11
commit ccd9ae8c55
@@ -1,21 +1,19 @@
#!/bin/sh
set -eufx
FEATURE_SET="$1"
ARCH="$2"
shift
shift
FEATURE_SET=min
ARCH=amd64
if [ $# -ge 1 ]; then
FEATURE_SET="$1"
shift
fi
if [ $# -ge 1 ]; then
ARCH="$1"
shift
fi
APT_EXTRA_ARGS="$@"
if [ -z "$FEATURE_SET" ]; then
FEATURE_SET=min
fi
if [ -z "$ARCH" ]; then
ARCH=amd64
fi
# common build tools for all architectures and feature sets
PACKAGES=" \
autoconf \