diff options
| author | bh <qn+git@epicurus.dev> | 2026-04-01 20:59:53 +0800 |
|---|---|---|
| committer | bh <qn+git@epicurus.dev> | 2026-04-01 20:59:53 +0800 |
| commit | e497345779c98353ca3481121981d7ef41bf7b73 (patch) | |
| tree | 4be69ba5515bdd5ef758d097ae3a1d083521b3ee /.install/aetherfox | |
| parent | 71e75e351867060d8cf00e676b70341022f0fe17 (diff) | |
Refactor scripts
Diffstat (limited to '.install/aetherfox')
| -rwxr-xr-x | .install/aetherfox | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/.install/aetherfox b/.install/aetherfox deleted file mode 100755 index 722560c..0000000 --- a/.install/aetherfox +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -FIREFOX_DIR="${HOME}/.mozilla/firefox" -REPO_URL="https://github.com/QuixoticNapoleon/AetherFox" - -if [[ ! -d "$FIREFOX_DIR" ]]; then - echo "Firefox profile directory not found: $FIREFOX_DIR" >&2 - exit 1 -fi - -profile_dir="" - -shopt -s nullglob -profiles=( "$FIREFOX_DIR"/*.default-release ) -shopt -u nullglob - -if (( ${#profiles[@]} == 0 )); then - echo "No Firefox .default-release profile found in $FIREFOX_DIR" >&2 - exit 1 -fi - -profile_dir="${profiles[0]}" -chrome_dir="${profile_dir}/chrome" - -mkdir -p "$chrome_dir" - -if [[ -d "$chrome_dir/.git" ]]; then - echo "Git repository already exists in: $chrome_dir" - exit 0 -fi - -echo "No git repository found in: $chrome_dir" -echo "Removing existing contents..." - -find "$chrome_dir" -mindepth 1 -maxdepth 1 -exec rm -rf -- {} + - -echo "Cloning AetherFox into: $chrome_dir" -git clone "$REPO_URL" "$chrome_dir" - -echo "Done." |
