Skip to content

Commit

Permalink
build: add build script for sheldon
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuN6211 committed Sep 16, 2024
1 parent d288755 commit 2b2c6fa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/setup-sheldon.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -x
# shellcheck source=./scripts/common.bash
source "$(dirname "$0")/common.bash"

if [ -d "$XDG_DATA_HOME/sheldon/bin" ]; then
echo "sheldon is already installed."
else
echo "Installing sheldon..."
curl --proto '=https' -fLsS https://rossmacarthur.github.io/install/crate.sh \
| bash -s -- --repo rossmacarthur/sheldon --to "$XDG_DATA_HOME/bin"
ln -s "$XDG_DATA_HOME/sheldon/bin/sheldon" "$HOME/.local/bin/sheldon"
fi

0 comments on commit 2b2c6fa

Please sign in to comment.