diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-05-21 09:35:55 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-05-21 09:35:55 +0200 |
commit | 3604b12fde54ffe0b049dd2f47ece4eba5689989 (patch) | |
tree | d06a82acf7d017be49a3a3cb5b4ef8057186d4c5 /Examples | |
parent | a4c5a92199249369f1f312f83f6ac3995c6c64f9 (diff) |
Add check that looks if rofi is running inside rofi script mode.
Diffstat (limited to 'Examples')
-rwxr-xr-x | Examples/test_script_env.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Examples/test_script_env.sh b/Examples/test_script_env.sh index 64899eb7..7753a845 100755 --- a/Examples/test_script_env.sh +++ b/Examples/test_script_env.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash - +if [ -z "${ROFI_OUTSIDE}" ] +then + echo "run this script in rofi". + exit +fi echo -en "\x00no-custom\x1ftrue\n" echo "${ROFI_RETV}" |