mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 03:17:43 +08:00
22 lines
377 B
Bash
Executable File
22 lines
377 B
Bash
Executable File
#!/bin/sh
|
|
|
|
bin=ipfs
|
|
|
|
# this script is currently brain dead.
|
|
# it merely tries two locations.
|
|
# in the future maybe use value of $PATH.
|
|
|
|
binpath=/usr/local/bin
|
|
if [ -d "$binpath" ]; then
|
|
mv "$bin" "$binpath/$bin"
|
|
echo "installed $binpath/$bin"
|
|
exit 0
|
|
fi
|
|
|
|
binpath=/usr/bin
|
|
if [ -d "$binpath" ]; then
|
|
mv "$bin" "$binpath/$bin"
|
|
echo "installed $binpath/$bin"
|
|
exit 0
|
|
fi
|