diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2018-03-06 12:50:18 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2018-03-06 12:50:18 +0300 |
commit | eee723875183a9eebf5a5aacb6b0bee91279a5de (patch) | |
tree | a467edb184ea98683e1b5158a382bb1bfbc70ecb /Installer/OSX | |
parent | 98b5aede2f237c5fa34e5eede59f32723d13b8df (diff) |
Removed the legacy backtick code and replaced it with `$()` in all scripts
Diffstat (limited to 'Installer/OSX')
-rw-r--r-- | Installer/OSX/make-dmg.sh | 10 | ||||
-rw-r--r-- | Installer/OSX/run-with-mono.sh | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Installer/OSX/make-dmg.sh b/Installer/OSX/make-dmg.sh index 49f18fa9c..0ac4e23ef 100644 --- a/Installer/OSX/make-dmg.sh +++ b/Installer/OSX/make-dmg.sh @@ -16,7 +16,7 @@ CODESIGN_IDENTITY=2S6R28R577 SHOW_USAGE_ERROR= -TEMPLATE_DMG_BZ2=`echo "$TEMPLATE_DMG.bz2"` +TEMPLATE_DMG_BZ2=$(echo "$TEMPLATE_DMG.bz2") DELETE_DMG=0 if [ -f "$TEMPLATE_DMG_BZ2" ]; then @@ -38,7 +38,7 @@ if [ ! -f "$1" ]; then exit fi -VERSION_NUMBER=`echo "$1" | awk -F- '{print $2}' | awk -F_ '{print $1}'` +VERSION_NUMBER=$(echo "$1" | awk -F- '{print $2}' | awk -F_ '{print $1}') VERSION_NAME="Duplicati" if [ -e "${OUTPUT_DMG}" ]; then @@ -64,8 +64,8 @@ mkdir "Duplicati.app/Contents/Resources" unzip -q "$1" -d "Duplicati.app/Contents/Resources" # Install the Info.plist and icon -SHORT_VERSION_NUMBER=`echo ${VERSION_NUMBER} | awk -F. '{printf $1; printf "."; printf $2; printf "."; print $3}'` -PLIST=`cat "Info.plist"` +SHORT_VERSION_NUMBER=$(echo ${VERSION_NUMBER} | awk -F. '{printf $1; printf "."; printf $2; printf "."; print $3}') +PLIST=$(cat "Info.plist") PLIST=${PLIST/!LONG_VERSION!/${VERSION_NUMBER}} PLIST=${PLIST/!SHORT_VERSION!/${SHORT_VERSION_NUMBER}} echo ${PLIST} > "Duplicati.app/Contents/Info.plist" @@ -121,7 +121,7 @@ if [ "x${CODESIGN_IDENTITY}" != "x" ]; then echo "Codesigning application bundle" #Do a poke to get sudo prompt up before the long-running sign-process - UNUSED=`sudo ls` + UNUSED=$(sudo ls) # Codesign all resources in bundle (i.e. the actual code) # Not required, but nice-to-have diff --git a/Installer/OSX/run-with-mono.sh b/Installer/OSX/run-with-mono.sh index ae4890d0b..a954b4123 100644 --- a/Installer/OSX/run-with-mono.sh +++ b/Installer/OSX/run-with-mono.sh @@ -30,7 +30,7 @@ DOWNLOAD_URL="http://www.mono-project.com/download/stable/#download-mac" # Try to find system default Mono if an override was not supplied if [ "z${MONO_BIN}" == "z" ]; then - MONO_BIN=`which mono` + MONO_BIN=$(which mono) # If the result is broken, don't use it if [ ! -f "${MONO_BIN}" ]; then |