mirror of
https://github.com/KDE/kde-linux.git
synced 2026-08-04 03:02:45 -04:00
Optimisng test for argument
This commit is contained in:
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user