text should also be local

This commit is contained in:
Michael Aquilina 2019-07-17 16:21:15 +01:00
parent 3da571b84d
commit 51656c43c7
No known key found for this signature in database
GPG key ID: 636066730B056BD1

View file

@ -19,7 +19,7 @@ function _auto_notify_message() {
local elapsed="$2"
local platform="$(uname)"
# Run using echo -e in order to make sure notify-send picks up new line
text="$(echo -e "\"$command\" has completed\n(Total time: $elapsed seconds)")"
local text="$(echo -e "\"$command\" has completed\n(Total time: $elapsed seconds)")"
if [[ "$platform" == "Linux" ]]; then
notify-send "$text"