Skip to content

Commit

Permalink
fixed bug on install.sh script and recovered log for list command
Browse files Browse the repository at this point in the history
  • Loading branch information
DamnWidget committed Jan 18, 2015
1 parent 16cb590 commit 7607c3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions cache/git.go
Expand Up @@ -22,7 +22,6 @@ package cache

import (
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
Expand Down Expand Up @@ -208,12 +207,9 @@ func getVersionTagsFromGitRepo() ([]string, error) {

func getVersionTags() (tags []string) {
tags = append(tags, "go")
realOut := Output
Output = ioutil.Discard
if err := cloneSource(); err != nil {
log.Fatal(err)
}
Output = realOut

newTags, err := getVersionTagsFromGitRepo()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Expand Up @@ -64,7 +64,7 @@ if [ ! -d "$DESTDIR" ]; then
mkdir $DESTDIR
fi
rm -Rf "${DESTDIR}/bin"
rm -Rf "${DESTDIR}/scripts/env/tpl"
rm -Rf "${DESTDIR}/scripts/tpl"
mv $WORKDIR/bin $DESTDIR/
mv $WORKDIR/env/tpl $DESTDIR/scripts/
mv $WORKDIR/VERSION $DESTDIR/
Expand Down

0 comments on commit 7607c3e

Please sign in to comment.