Optimisng test for argument

This commit is contained in:
Paul Brown
2026-07-25 20:51:12 +00:00
parent 9df8fa41dc
commit 9f136376e2

View File

@@ -7,11 +7,7 @@
set -e
# Test to see if the user added a name for their extension. Otherwise use 'kde'
SYSEXT_NAME="kde"
if test -n "$1"; then
SYSEXT_NAME="$1"
fi
SYSEXT_NAME=${1:-"kde"}
SYSEXT_BASE_LOCATION="${HOME}/${SYSEXT_NAME}/usr/"
SYSEXT_LOCATION="${SYSEXT_BASE_LOCATION}/lib/extension-release.d/"