Skip to content

Commit

Permalink
Move Codespaces bootstrap script out of script.
Browse files Browse the repository at this point in the history
This avoids confusion with the `scripts` dir.
  • Loading branch information
lgarron committed Nov 7, 2024
1 parent 658f0db commit 44a0c0c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
10 changes: 3 additions & 7 deletions script/bootstrap → bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ set -euo pipefail
# For Codespaces
# https://docs.github.com/en/codespaces/customizing-your-codespace/personalizing-github-codespaces-for-your-account#dotfiles

BOOTSTRAP_SCRIPT_FOLDER_DIR="$(dirname "$0")"
cd "$BOOTSTRAP_SCRIPT_FOLDER_DIR"
cd ..

if ! command -v stow
then
echo "Installing \`stow\`."
Expand Down Expand Up @@ -48,6 +44,6 @@ make linux

sudo chsh "$(id -un)" --shell "$(command -v fish)"

"$BOOTSTRAP_SCRIPT_FOLDER_DIR/install-git-commands"
"$BOOTSTRAP_SCRIPT_FOLDER_DIR/install-lgarron-scripts"
"$BOOTSTRAP_SCRIPT_FOLDER_DIR/install-mak"
./bootstrap/install-git-commands
./bootstrap/install-lgarron-scripts
./bootstrap/install-mak
10 changes: 0 additions & 10 deletions script/install-git-commands → bootstrap/install-git-commands
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,3 @@ function install-git-freeze-bin {
command -v git-freeze || install-git-freeze-bin git-freeze
command -v git-thaw || install-git-freeze-bin git-thaw
command -v git-abandon || install-git-freeze-bin git-abandon

function install-scripts-bin {
dest_bin=${1}
src_bin=${2}
echo "Installing: ${dest_bin}"
sudo cp "scripts/${src_bin}" "/usr/bin/${dest_bin}"
sudo chmod +x "/usr/bin/${dest_bin}"
}

command -v git-distance || install-scripts-bin git-distance git/git-distance.fish
File renamed without changes.
File renamed without changes.

0 comments on commit 44a0c0c

Please sign in to comment.