Skip to content

Commit

Permalink
#798: English grammar fix for success message (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille authored Jun 24, 2022
1 parent 876aab9 commit 94a9ff7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
2 changes: 0 additions & 2 deletions scripts/src/main/resources/scripts/command/ide
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ function doUpdateSoftware() {
then
doEchoStep "Setting up ${tool}"
doDevonCommand "${tool}" setup
doSuccess "Success"
fi
done
fi
Expand Down Expand Up @@ -373,7 +372,6 @@ function doUpdateSoftware() {
fi
fi
doInstall "-" "${DEVON_IDE_HOME}/software/${software}" "${software}" "${software_version}" "" "" "${os}" "" ".tgz" "${repo}"
doSuccess "Success"
fi
fi
done
Expand Down
20 changes: 7 additions & 13 deletions scripts/src/main/resources/scripts/functions
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function doEchoAttention() {
function doResult() {
if [ "${2}" = 0 ]
then
doSuccess "Succeeded to ${1}"
doSuccess "Success: ${1}"
else
if [ -z "${2}" ]
then
Expand All @@ -72,27 +72,21 @@ function doRunCommand() {
doFail "Working directory ${3} does not exist."
fi
fi
doDebug "Running command: ${1}"
eval "${1}"
result=${?}
if [ -n "${3}" ]
then
cd "${cwd}" || exit 1
fi
local message
if [ -z "${2}" ]
then
message="run command ${1/ */}"
else
message="${2} (${1/ */})"
fi
if [ ${result} = 0 ]
doDebug "Trying to ${message}"
eval "${1}"
result=${?}
if [ -n "${3}" ]
then
doSuccess "Succeeded to ${message}"
else
doError "Failed to run command: ${1}"
doFail "Failed to ${message}" ${result}
cd "${cwd}" || exit 1
fi
doResult "${message}" ${result}
}

function doIsForce() {
Expand Down

0 comments on commit 94a9ff7

Please sign in to comment.