Set platform variable to local

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

View file

@ -17,9 +17,9 @@ export AUTO_NOTIFY_IGNORE=(
function _auto_notify_message() { function _auto_notify_message() {
local command="$1" local command="$1"
local elapsed="$2" local elapsed="$2"
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)")" text="$(echo -e "\"$command\" has completed\n(Total time: $elapsed seconds)")"
platform="$(uname)"
if [[ "$platform" == "Linux" ]]; then if [[ "$platform" == "Linux" ]]; then
notify-send "$text" notify-send "$text"