aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ves-list.sh2
-rw-r--r--ves.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/ves-list.sh b/ves-list.sh
index 1b6c775..29844bf 100644
--- a/ves-list.sh
+++ b/ves-list.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ -z $XDG_DATA_HOME ]; then
+if [ -z ${XDG_DATA_HOME+x} ]; then
ENV_DIR="$HOME/.local/share/ves/envs"
else
ENV_DIR="$XDG_DATA_HOME/ves/envs"
diff --git a/ves.sh b/ves.sh
index 0287a8a..c17a040 100644
--- a/ves.sh
+++ b/ves.sh
@@ -1,6 +1,8 @@
#!/bin/sh
ves() {
- if [ -z "$VES_SCRIPTS_DIR" ]; then
+
+ if [ -z "${VES_SCRIPTS_DIR+x}" ]; then
+
VES_BIN="$HOME/.local/bin/ves_scripts"
else
VES_BIN="$VES_SCRIPTS_DIR"