提交 fc20fe87 作者: Stephan Kulla

install.sh: Add error message at the end.

License: MIT
Signed-off-by: 's avatarStephan Kulla <git.mail@kulla.me>
上级 1f81933f
#!/bin/sh
bin=ipfs
binpaths="/usr/local/bin /usr/bin"
# this script is currently brain dead.
# it merely tries two locations.
# in the future maybe use value of $PATH.
for binpath in /usr/local/bin /usr/bin; do
for binpath in $binpaths; do
if [ -d "$binpath" ]; then
mv "$bin" "$binpath/$bin"
echo "installed $binpath/$bin"
exit 0
fi
done
echo "cannot install $bin in one of the directories $binpaths"
exit 1
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论