mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
14 lines
323 B
Bash
Executable File
14 lines
323 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Version of greenclip: " | tr -d '\n' # 4.0
|
|
read -r version
|
|
|
|
curl -fLo greenclip https://github.com/erebe/greenclip/releases/download/${version}/greenclip
|
|
chmod 755 greenclip
|
|
if command -v doas >/dev/null
|
|
then
|
|
doas -- mv -fv greenclip /usr/bin/greenclip
|
|
else
|
|
sudo mv -fv greenclip /usr/bin/greenclip
|
|
fi
|