This commit is contained in:
陆柯 2023-01-04 17:09:12 +08:00
parent 9276b32a61
commit f0558fc5c3
3 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ testpath4=~/faronear.git/fon.git/sysconfig
if [ -d $testpath0 ] if [ -d $testpath0 ]
then then
SourcePath=$1 SourcePath=$0
elif [ -d $testpath1 ] elif [ -d $testpath1 ]
then then
SourcePath=$testpath1 SourcePath=$testpath1

View File

@ -9,10 +9,10 @@ testpath5=`pwd`/nixhome
if [ "$1" ] if [ "$1" ]
then then
SourcePath=$0 SourcePath=$1
elif [ -d $testpath0 ] elif [ -d $testpath0 ]
then then
SourcePath=$1 SourcePath=$testpath0
elif [ -d $testpath1 ] elif [ -d $testpath1 ]
then then
SourcePath=$testpath1 SourcePath=$testpath1

View File

@ -9,11 +9,11 @@ else
if [ ! $VERSION ] if [ ! $VERSION ]
then then
VERSION=$defaultVERSION VERSION=$defaultVERSION
echo Use default version $defaultVERSION
fi fi
fi fi
curl https://dist.ipfs.tech/kubo/v$VERSION/kubo_v$VERSION_linux-amd64.tar.gz -o kubo_v$VERSION.tgz echo Download https://dist.ipfs.tech/kubo/v$VERSION/kubo_v${VERSION}_linux-amd64.tar.gz
curl https://dist.ipfs.tech/kubo/v$VERSION/kubo_v${VERSION}_linux-amd64.tar.gz -o kubo_v$VERSION.tgz
tar xzf kubo_v$VERSION.tgz tar xzf kubo_v$VERSION.tgz
## install ./kubo/ipfs to /usr/local/bin/ipfs ## install ./kubo/ipfs to /usr/local/bin/ipfs
cd kubo && sudo bash install.sh cd kubo && sudo bash install.sh