text should also be local
This commit is contained in:
parent
3da571b84d
commit
51656c43c7
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ function _auto_notify_message() {
|
||||||
local elapsed="$2"
|
local elapsed="$2"
|
||||||
local platform="$(uname)"
|
local platform="$(uname)"
|
||||||
# Run using echo -e in order to make sure notify-send picks up new line
|
# 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
|
if [[ "$platform" == "Linux" ]]; then
|
||||||
notify-send "$text"
|
notify-send "$text"
|
||||||
|
|
Loading…
Add table
Reference in a new issue