summaryrefslogtreecommitdiffstats
path: root/Examples
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2020-05-21 09:35:55 +0200
committerDave Davenport <qball@gmpclient.org>2020-05-21 09:35:55 +0200
commit3604b12fde54ffe0b049dd2f47ece4eba5689989 (patch)
treed06a82acf7d017be49a3a3cb5b4ef8057186d4c5 /Examples
parenta4c5a92199249369f1f312f83f6ac3995c6c64f9 (diff)
Add check that looks if rofi is running inside rofi script mode.
Diffstat (limited to 'Examples')
-rwxr-xr-xExamples/test_script_env.sh6
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}"