Skip to content

Commit

Permalink
Fix error when ZSH_VERSION is unset.
Browse files Browse the repository at this point in the history
Merges #6587
  • Loading branch information
reitermarkus authored and espressif-bot committed Apr 26, 2021
1 parent ae72870 commit b9038d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ idf_export_main() {
}

enable_autocomplete() {
if [ -n "$ZSH_VERSION" ]
if [ -n "${ZSH_VERSION-}" ]
then
autoload -Uz compinit && compinit -u
eval "$(env _IDF.PY_COMPLETE=source_zsh idf.py)" || echo "WARNING: Failed to load shell autocompletion!"
Expand Down

0 comments on commit b9038d0

Please sign in to comment.