Update 1 file: bootstrap.sh
This commit is contained in:
+3
-1
@@ -21,7 +21,7 @@ arch() {
|
|||||||
|
|
||||||
check_all() {
|
check_all() {
|
||||||
local missing=()
|
local missing=()
|
||||||
for cmd in git curl jq fzf starship eza bat delta fastfetch dotstate; do
|
for cmd in zsh git curl jq fzf starship eza bat delta fastfetch dotstate; do
|
||||||
command -v "$cmd" &>/dev/null || missing+=("$cmd")
|
command -v "$cmd" &>/dev/null || missing+=("$cmd")
|
||||||
done
|
done
|
||||||
echo "${missing[@]}"
|
echo "${missing[@]}"
|
||||||
@@ -112,6 +112,7 @@ install_missing() {
|
|||||||
[bat]="bat"
|
[bat]="bat"
|
||||||
[delta]="git-delta"
|
[delta]="git-delta"
|
||||||
[fastfetch]="fastfetch"
|
[fastfetch]="fastfetch"
|
||||||
|
[zsh]="zsh"
|
||||||
)
|
)
|
||||||
|
|
||||||
local sys_pkgs=()
|
local sys_pkgs=()
|
||||||
@@ -158,6 +159,7 @@ update_repo() {
|
|||||||
info "Repository not found. Cloning..."
|
info "Repository not found. Cloning..."
|
||||||
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null
|
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null
|
||||||
fi
|
fi
|
||||||
|
update
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- Main ---
|
# --- Main ---
|
||||||
|
|||||||
Reference in New Issue
Block a user