diff options
Diffstat (limited to 'share/trashman/spotx/unix/linux/install')
-rwxr-xr-x | share/trashman/spotx/unix/linux/install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/share/trashman/spotx/unix/linux/install b/share/trashman/spotx/unix/linux/install new file mode 100755 index 0000000..2eacedf --- /dev/null +++ b/share/trashman/spotx/unix/linux/install @@ -0,0 +1,25 @@ +#!/bin/bash + +# Parameters +SHARE="$1" +COMMIT="c954826f9e659b4a3a684c9903a1eeec2980b0b5" + +# Include basic functions +. $SHARE/trashman/functions || exit 1 + +# Requirements +trashman install spotify || exit 1 + +# Download +if [ ! -d "/usr/local/src/spotx" ]; then + git clone https://github.com/SpotX-CLI/SpotX-Linux /usr/local/src/spotx +fi + +# Use the latest version +#git -C /usr/local/src/spotx pull + +# Checkout an specific version +git -C /usr/local/src/spotx checkout $COMMIT + +# Install +bash /usr/local/src/spotx/install.sh |