This commit is contained in:
20
whatsdirty/install.sh
Normal file
20
whatsdirty/install.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
#SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
echo "Installing whatsdirty"
|
||||
|
||||
if ! command -v dropshell-tool ; then
|
||||
|
||||
ARCH=$(uname -m)
|
||||
wget "https://getbin.xyz/dropshell-tool:latest-${ARCH}" -O bootstrap && chmod a+x bootstrap
|
||||
./bootstrap install dropshell-tool
|
||||
rm ./bootstrap
|
||||
VERSION=$(dropshell-tool version)
|
||||
echo "Dropshell tool $VERSION installed"
|
||||
|
||||
fi
|
||||
|
||||
dropshell-tool install whatsdirty
|
Reference in New Issue
Block a user