diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-04-24 11:27:23 +0300 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-04-24 11:27:23 +0300 |
commit | 6816582d800ff6587b02251a7191e4f7aa8c292d (patch) | |
tree | 5aedbcf8656de1c6e295e6ab4664df34dfca50eb /node | |
parent | f251902a71948604405c852cc34b5da5a9e13b8d (diff) |
Handle short string properly.
Diffstat (limited to 'node')
-rwxr-xr-x | node/prepare_build_config.py | 2 |
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] == "'": |