aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnode/prepare_build_config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/node/prepare_build_config.py b/node/prepare_build_config.py
index e275d1e..9bd9188 100755
--- a/node/prepare_build_config.py
+++ b/node/prepare_build_config.py
@@ -18,6 +18,8 @@ class BuildConfigMismatchException(Exception):
def shell_unquote(s):
# Primitive implementation, we should
+ if len(s) < 2:
+ return s
if s[0] == '"' and s[-1] == '"':
return s[1:-1]
if s[0] == "'" and s[-1] == "'":