We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fc54a2 commit 3d9e5e6Copy full SHA for 3d9e5e6
1 file changed
src/commands/update.go
@@ -22,15 +22,19 @@ func (cmd *UpdateCmd) Run() (err error) {
22
// Variable which will hold if any app was updated.
23
var howManyUpdates int = 0
24
25
- fmt.Println("Checking For Updates")
26
-
27
if cmd.All { // if `update all`
28
cmd.Targets, err = getAllTargets() // Load all the application info into targets
29
if err != nil {
30
return err
31
}
32
33
+ if len(cmd.Targets) == 0 {
+ fmt.Println("No Application Installed")
34
+ return nil
35
+ }
36
+
37
+ fmt.Println("Checking For Updates")
38
for _, target := range cmd.Targets {
39
if len(strings.Split(target, "/")) < 2 {
40
target = strings.ToLower(target + "/" + target)
0 commit comments