Skip to content

Commit

Permalink
Arg check
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Feb 13, 2020
1 parent 738c2f1 commit 114e2c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/yupdate
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,11 @@ HELP
elsif arg1.start_with?("http") && arg1.end_with?(".tar.gz")
# upgrade from URL
install_from_tar(arg1)
else
elsif !arg2
# otherwise treat it as a hostname providing a tarball server
install_from_servers(arg1)
else
raise "Invalid arguments"
end

# TODO: only when something has been updated?
Expand Down

0 comments on commit 114e2c7

Please sign in to comment.