Get rid of remaining $GOPATH dependencies

This commit is contained in:
Jakob Unterwurzacher 2017-02-19 20:43:07 +01:00
parent 166c62fd21
commit e406eb22ba
2 changed files with 9 additions and 3 deletions

View File

@ -76,8 +76,8 @@ Use
---
$ mkdir cipher plain
$ $GOPATH/bin/gocryptfs -init cipher
$ $GOPATH/bin/gocryptfs cipher plain
$ ./gocryptfs -init cipher
$ ./gocryptfs cipher plain
See the [Quickstart](https://nuetzlich.net/gocryptfs/quickstart/) page for more info.

View File

@ -22,8 +22,12 @@ source ../fuse-unmount.bash
DIR=$(mktemp -d /tmp/fsstress.XXX)
# Mountpoint
MNT="$DIR.mnt"
# Set the GOPATH variable to the default if it is empty
GOPATH=$(go env GOPATH)
# fsstress binary
FSSTRESS=~/src/xfstests/ltp/fsstress
FSSTRESS=$GOPATH/src/xfstests/ltp/fsstress
if [ ! -x $FSSTRESS ]
then
@ -37,6 +41,8 @@ mkdir -p $DIR $MNT
rm -Rf $DIR/*
rm -Rf $MNT/*
# FS-specific compile and mount
if [ $MYNAME = fsstress-loopback.bash ]; then
echo "Recompile go-fuse loopback"