mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
new package wizard: change bash-specific construct
Patch by Markus Heidelberg. ${VAR//-/_} which replaces - with _ aborts with "syntax error" on a system where /bin/sh points to dash. Use tr therefor as already done in the line above rather than changing the shebang to bash.
This commit is contained in:
parent
14717272be
commit
6fd903a4de
@ -48,8 +48,7 @@ read CONFIG_OPTIONS
|
|||||||
URL=${DOWNLOAD_LOC%/*}
|
URL=${DOWNLOAD_LOC%/*}
|
||||||
TARBALL=${DOWNLOAD_LOC##*/}
|
TARBALL=${DOWNLOAD_LOC##*/}
|
||||||
EXTENSION=${TARBALL##*.tar.}
|
EXTENSION=${TARBALL##*.tar.}
|
||||||
NAME_UPPER=`echo ${PACKAGE_NAME} | tr [a-z] [A-Z]`
|
NAME_UPPER=`echo ${PACKAGE_NAME} | tr a-z- A-Z_`
|
||||||
NAME_UPPER=${NAME_UPPER//-/_}
|
|
||||||
|
|
||||||
mkdir ../package/${PACKAGE_NAME}
|
mkdir ../package/${PACKAGE_NAME}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user