detached b0fb870

fix(install): process cleanup flag after helper files are downloaded

commit
b0fb8707852f28d8e00d3da057c08095dfb1ef5d
author
bnema · · 2025-10-20 21:09 UTC
committer
bnema · · 2025-10-20 19:19 UTC
parent
09b7a59
signature
unsigned
2 files · +8 -6
M CHANGELOG.md +1 -0
@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
66
77 ### Fixed
88 - **Curl-pipe installation**: Fixed curl-based one-liner installation by auto-detecting piped input, re-executing with TTY for interactive prompts, and running bootstrap before downloads
9+- **Cleanup flag**: Fixed --cleanup flag to run after helper files are downloaded
910
1011 ## [0.1.0] - 2025-10-21
1112
@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
6 6
7 ### Fixed7 ### Fixed
8 - **Curl-pipe installation**: Fixed curl-based one-liner installation by auto-detecting piped input, re-executing with TTY for interactive prompts, and running bootstrap before downloads8 - **Curl-pipe installation**: Fixed curl-based one-liner installation by auto-detecting piped input, re-executing with TTY for interactive prompts, and running bootstrap before downloads
9+- **Cleanup flag**: Fixed --cleanup flag to run after helper files are downloaded
9 10
10 ## [0.1.0] - 2025-10-2111 ## [0.1.0] - 2025-10-21
11 12
M install.sh +7 -6
@@ -23,12 +23,7 @@ export ARCHUP_INSTALL_CONFIG="/var/log/archup-install.conf"
2323 export ARCHUP_REPO_URL="${ARCHUP_REPO_URL:-https://github.com/bnema/archup}"
2424 export ARCHUP_RAW_URL="${ARCHUP_RAW_URL:-https://raw.githubusercontent.com/bnema/archup/dev}"
2525
26-# Handle command-line flags
27-if [ "$1" = "--cleanup" ]; then
28- echo "Running cleanup before installation..."
29- source "$ARCHUP_INSTALL/helpers/cleanup.sh" default
30-fi
31-
26+# Handle help flag early (doesn't need any files)
3227 if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
3328 cat << 'HELP'
3429 Usage: install.sh [OPTIONS]
@@ -71,6 +66,12 @@ fi
7166 # Source all helper utilities (now safe to use gum)
7267 source "$ARCHUP_INSTALL/helpers/all.sh"
7368
69+# Handle cleanup flag (after helpers are available)
70+if [ "$1" = "--cleanup" ]; then
71+ echo "Running cleanup before installation..."
72+ source "$ARCHUP_INSTALL/helpers/cleanup.sh" default
73+fi
74+
7475 # Display logo
7576 clear_logo
7677
@@ -23,12 +23,7 @@ export ARCHUP_INSTALL_CONFIG="/var/log/archup-install.conf"
23 export ARCHUP_REPO_URL="${ARCHUP_REPO_URL:-https://github.com/bnema/archup}"23 export ARCHUP_REPO_URL="${ARCHUP_REPO_URL:-https://github.com/bnema/archup}"
24 export ARCHUP_RAW_URL="${ARCHUP_RAW_URL:-https://raw.githubusercontent.com/bnema/archup/dev}"24 export ARCHUP_RAW_URL="${ARCHUP_RAW_URL:-https://raw.githubusercontent.com/bnema/archup/dev}"
25 25
26-# Handle command-line flags26+# Handle help flag early (doesn't need any files)
27-if [ "$1" = "--cleanup" ]; then
28- echo "Running cleanup before installation..."
29- source "$ARCHUP_INSTALL/helpers/cleanup.sh" default
30-fi
31-
32 if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then27 if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
33 cat << 'HELP'28 cat << 'HELP'
34 Usage: install.sh [OPTIONS]29 Usage: install.sh [OPTIONS]
@@ -71,6 +66,12 @@ fi
71 # Source all helper utilities (now safe to use gum)66 # Source all helper utilities (now safe to use gum)
72 source "$ARCHUP_INSTALL/helpers/all.sh"67 source "$ARCHUP_INSTALL/helpers/all.sh"
73 68
69+# Handle cleanup flag (after helpers are available)
70+if [ "$1" = "--cleanup" ]; then
71+ echo "Running cleanup before installation..."
72+ source "$ARCHUP_INSTALL/helpers/cleanup.sh" default
73+fi
74+
74 # Display logo75 # Display logo
75 clear_logo76 clear_logo
76 77

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 0

    ↑↓ moveenter openesc close