compile cliphist
This commit is contained in:
parent
100be6c7a1
commit
5da6cee273
1 changed files with 7 additions and 8 deletions
|
@ -75,14 +75,13 @@ fi
|
||||||
|
|
||||||
# Cliphist mit Prüfung
|
# Cliphist mit Prüfung
|
||||||
if [[ ! -f /usr/bin/cliphist ]]; then
|
if [[ ! -f /usr/bin/cliphist ]]; then
|
||||||
ARCH="$(uname -m)"
|
mkdir -p ${HOME}/repos
|
||||||
if [[ "$ARCH" == "aarch64" || "$ARCH" == "armv7l" ]]; then
|
cd ${HOME}/repos
|
||||||
CLIPHIST_URL="https://github.com/sentriz/cliphist/releases/download/v0.6.1/v0.6.1-linux-arm"
|
git clone https://github.com/sentriz/cliphist.git
|
||||||
else
|
cd cliphist
|
||||||
CLIPHIST_URL="https://github.com/sentriz/cliphist/releases/download/v0.6.1/v0.6.1-linux-amd64"
|
go build -o cliphist .
|
||||||
fi
|
sudo cp cliphist /usr/bin/
|
||||||
sudo wget -O /usr/bin/cliphist "$CLIPHIST_URL"
|
echo "cliphist wurde auf dem System installiert"
|
||||||
sudo chmod +x /usr/bin/cliphist
|
|
||||||
else
|
else
|
||||||
echo "cliphist ist bereits installiert, überspringe Download"
|
echo "cliphist ist bereits installiert, überspringe Download"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue