mirror of
https://github.com/MiSTer-devel/Updater_script_MiSTer.git
synced 2026-05-24 03:04:39 +00:00
[ EXPRESSION ] is obsolete (should be [[ EXPRESSION ]])
https://wiki.bash-hackers.org/scripting/obsolete
This commit is contained in:
@@ -36,12 +36,12 @@ ALLOW_INSECURE_SSH="true"
|
||||
|
||||
#========= CODE STARTS HERE =========
|
||||
ORIGINAL_SCRIPT_PATH="${0}"
|
||||
if [ "${ORIGINAL_SCRIPT_PATH}" == "bash" ]
|
||||
if [[ "${ORIGINAL_SCRIPT_PATH}" == "bash" ]]
|
||||
then
|
||||
ORIGINAL_SCRIPT_PATH=$(ps | grep "^ *${PPID} " | grep -o "[^ ]*$")
|
||||
fi
|
||||
INI_PATH=${ORIGINAL_SCRIPT_PATH%.*}.ini
|
||||
if [ -f ${INI_PATH} ]
|
||||
if [[ -f ${INI_PATH} ]]
|
||||
then
|
||||
eval "$(cat ${INI_PATH} | tr -d '\r')"
|
||||
fi
|
||||
@@ -52,7 +52,7 @@ case $? in
|
||||
0)
|
||||
;;
|
||||
60)
|
||||
if [ "${ALLOW_INSECURE_SSH}" == "true" ]
|
||||
if [[ "${ALLOW_INSECURE_SSH}" == "true" ]]
|
||||
then
|
||||
SSL_SECURITY_OPTION="--insecure"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user