lib: fix issues with nounset and parameters used before defined (#7433)
lib: fix issues with nounset and parameters used before defined (#7433)


monological/oh-my-zsh,monological/oh-my-zsh,monological/oh-my-zsh,monological/oh-my-zsh