Skip to content

Commit

Permalink
[WIP] Fix chmod and optional sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvcc committed Jul 1, 2024
1 parent 4042dd6 commit a4bca1c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .cfg/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ cfg "config" status.showUntrackedFiles no
cfg "config" commit.verbose true

if test -f "$(which apt)"; then
sudo apt install -y zsh
CMD=""
if [ "$(id -u)" != "0" ]; then
CMD="sudo"
fi
${CMD} apt install -y zsh
fi

./.cfg/scripts/install-brew.sh
Expand Down
6 changes: 5 additions & 1 deletion .cfg/scripts/install-brew.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env bash

if test -f "$(which apt)"; then
sudo apt install -y build-essential curl git
CMD=""
if [ "$(id -u)" != "0" ]; then
CMD="sudo"
fi
${CMD} apt install -y build-essential
fi

curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | env NONINTERACTIVE=1 bash
Empty file modified .cfg/scripts/install-packages.sh
100644 → 100755
Empty file.

0 comments on commit a4bca1c

Please sign in to comment.