diff --git a/cmd/plugin.go b/cmd/plugin.go index 81e7a80..d1bbdc1 100644 --- a/cmd/plugin.go +++ b/cmd/plugin.go @@ -43,7 +43,7 @@ func pluginCommand() *cobra.Command { pluginName := filepath.Base(pluginPath) logger := setupLogger(pluginName) - // Start the goroutine to hande the plugin command + // Start the goroutine to handle the plugin command go func() { for cmd := range commands { response := executePluginCommand(cmd, logger) diff --git a/cmd/repo.go b/cmd/repo.go index d24d312..f8472dd 100644 --- a/cmd/repo.go +++ b/cmd/repo.go @@ -181,7 +181,7 @@ func repoCommand() *cobra.Command { // } // logger.Info(repo_url) - // // Download the spaceocre from the source url + // // Download the spacecore from the source url // // Verify the downloaded content (checksum) // // Register the spacecore in the Vimana system // // Add the spacecore to the config.toml file diff --git a/scripts/eigen.sh b/scripts/eigen.sh index 1d816b8..e7026f8 100644 --- a/scripts/eigen.sh +++ b/scripts/eigen.sh @@ -400,9 +400,9 @@ completions() { BASH_COMPLETION_SCRIPTS_DIR=~/.local/share/bash-completion/completions BASH_COMPLETION_SCRIPT_PATH=$BASH_COMPLETION_SCRIPTS_DIR/eigenlayer.sh mkdir -p $BASH_COMPLETION_SCRIPTS_DIR - COBRA_COMPLETION_SUCCEDED=false - $BINDIR/$BINARY completion bash > $BASH_COMPLETION_SCRIPT_PATH 2> /dev/null && COBRA_COMPLETION_SUCCEDED=true - if [ $COBRA_COMPLETION_SUCCEDED = true ] + COBRA_COMPLETION_SUCCEEDED=false + $BINDIR/$BINARY completion bash > $BASH_COMPLETION_SCRIPT_PATH 2> /dev/null && COBRA_COMPLETION_SUCCEEDED=true + if [ $COBRA_COMPLETION_SUCCEEDED = true ] then touch $BASH_COMPLETION_MAIN sed_in_place "/.*# eigenlayer completion/d" $BASH_COMPLETION_MAIN @@ -441,9 +441,9 @@ completions() { ZSH_COMPLETION_SCRIPTS_DIR=~/.local/share/zsh-completion/completions ZSH_COMPLETION_SCRIPT_PATH=$ZSH_COMPLETION_SCRIPTS_DIR/_eigenlayer mkdir -p $ZSH_COMPLETION_SCRIPTS_DIR - COBRA_COMPLETION_SUCCEDED=false - $BINDIR/$BINARY completion zsh > $BASH_COMPLETION_SCRIPT_PATH 2> /dev/null && COBRA_COMPLETION_SUCCEDED=true - if [ $COBRA_COMPLETION_SUCCEDED = true ] + COBRA_COMPLETION_SUCCEEDED=false + $BINDIR/$BINARY completion zsh > $BASH_COMPLETION_SCRIPT_PATH 2> /dev/null && COBRA_COMPLETION_SUCCEEDED=true + if [ $COBRA_COMPLETION_SUCCEEDED = true ] then touch $ZSH_COMPLETION_MAIN sed_in_place "/.*# eigenlayer completion/d" $ZSH_COMPLETION_MAIN @@ -457,4 +457,4 @@ completions() { if [ "$RUN_COMPLETIONS" = true ]; then completions -fi \ No newline at end of file +fi