9 lines
303 B
Bash
9 lines
303 B
Bash
#!/bin/sh
|
|
# macOS/Linux entry; Windows can use the .ps1 or Python entry.
|
|
set -eu
|
|
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
if command -v python3 >/dev/null 2>&1; then
|
|
exec python3 "$script_dir/dingtalk_notify.py" message "$@"
|
|
fi
|
|
exec python "$script_dir/dingtalk_notify.py" message "$@"
|