minor fixes

pull/58/head
Simon Let 6 years ago
parent 8de4f4f4fc
commit 477816e6b6
  1. 2
      cmd/control/cmd/update.go
  2. 1
      scripts/rawinstall.sh

@ -10,7 +10,7 @@ import (
var updateCmd = &cobra.Command{
Use: "update",
Short: "checks for updates and updates RESH",
Short: "check for updates and update RESH",
Run: func(cmd *cobra.Command, args []string) {
url := "https://raw.githubusercontent.com/curusarn/resh/master/scripts/rawinstall.sh"
execCmd := exec.Command("bash", "-c", "curl -fsSL "+url+" | bash")

@ -25,6 +25,7 @@ version="${tag:1}"
echo " * Latest version: $version (git tag: $tag)"
# TODO: compare semanitcally instead of just using equality
if [ "${__RESH_VERSION-}" == "$version" ]; then
echo " * Resh is up to date - nothing to do - exiting."
exit 0

Loading…
Cancel
Save