swc/crates/swc_ecma_minifier/scripts/_/notify.sh

9 lines
150 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -eu
if command -v osascript &> /dev/null
then
osascript -e "display notification \"$1\" with title \"swc-minifier\""
fi