diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index c6cf1719..9099a89d 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -81,8 +81,8 @@ function locations(substring,string){ function wrapMessage(msg) { const indexes = locations('`', msg) - if (indexes.length > 1) { - return wrapMessage(msg.substring(0, indexes[0]) + chalk.bold.black.bgGray(' ' + msg.substring(indexes[0] + 1, indexes[1] + 1 - indexes[0]) + ' ') + msg.substring(indexes[1] + 1 - indexes[0]) + ' ') + if (indexes.length > 3) { + return msg.substring(0, indexes[0]) + chalk.bold.black.bgGray(' ' + msg.substring(indexes[0] + 1, indexes[1] + 1 - indexes[0]) + ' ') + msg.substring(indexes[1] + 1 - indexes[0]) + ' ' } else { return msg }