Fix unbound variable errors
This commit is contained in:
@@ -60,7 +60,7 @@ step_10() {
|
||||
local dnsUrl="46.182.19.48" #digitalcourage.de/support/zensurfreier-dns-server
|
||||
local dnsFallbackUrl="194.150.168.168" #dns.as250.net; Berlin/Frankfurt
|
||||
local lecho="info"
|
||||
if [ "$1" == "-l" ]; then
|
||||
if [ "${1:-}" == "-l" ]; then
|
||||
lecho="echo"
|
||||
shift
|
||||
fi
|
||||
|
@@ -178,8 +178,8 @@ step_7() {
|
||||
|
||||
step_20_info() {
|
||||
shift
|
||||
local ebuTarget=$EBU_TARGET
|
||||
[ ! -z "$1" ] && ebuTarget="$1"
|
||||
local ebuTarget="${EBU_TARGET:-}"
|
||||
[ ! -z "${1:-}" ] && ebuTarget="$1"
|
||||
if contextHelp; then
|
||||
echo "Status of (profile) [TARGET]"
|
||||
elif [ ! -z "$1" ]; then
|
||||
|
@@ -24,7 +24,7 @@ step_18_alias() { echo "updatecheck"; }
|
||||
step_18() {
|
||||
shift
|
||||
local latestVersion=
|
||||
if [ ! -z $1 ] ; then
|
||||
if [ ! -z "${1:-}" ] ; then
|
||||
latestVersion="$1"
|
||||
else
|
||||
latestVersion=$(curl --silent "$latestUrl" | grep -Po '"tag_name": "v\K.*?(?=")')
|
||||
@@ -74,7 +74,7 @@ step_20() {
|
||||
|
||||
step_22_info() {
|
||||
shift
|
||||
if [ -z $1 ] ; then
|
||||
if [ -z "${1:-}" ] ; then
|
||||
echo -n "Get latest version from github"
|
||||
if ! contextHelp ; then
|
||||
echo ": $(curl --silent "$latestUrl" | grep -Po '"tag_name": "\K.*?(?=")')"
|
||||
@@ -89,7 +89,7 @@ step_22_alias() { echo "upgrade"; }
|
||||
step_22() {
|
||||
shift # don't need step number
|
||||
local latestVersion=
|
||||
if [ ! -z $1 ] ; then
|
||||
if [ ! -z "${1:-}" ] ; then
|
||||
latestVersion="$1"
|
||||
else
|
||||
latestVersion=$(curl --silent "$latestUrl" | grep -Po '"tag_name": "v\K.*?(?=")')
|
||||
|
Reference in New Issue
Block a user