detached 77992c0

fix(post-boot): remove duplicate ble.sh block and add bashrc log

- Removed duplicate ble.sh installation block
- Enhanced logging to show when ble.sh is configured in ~/.bashrc
- Captures script output to detect bashrc configuration status
commit
77992c02c063b756a6102cb338cdf856a2301788
author
bnema · · 2025-10-31 06:20 UTC
parent
392658c
signature
GPG Unverified2B82207D370127A0 The key is unknown
1 file · +8 -11
M install/post-boot/all.sh +8 -11
@@ -51,21 +51,18 @@ if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then
5151 fi
5252 fi
5353
54-# Install ble.sh (Bash Line Editor)
55-if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then
56- echo "Installing ble.sh (Bash Line Editor)..." >> "$LOG_FILE"
57- if bash /usr/local/share/archup/post-boot/blesh.sh >> "$LOG_FILE" 2>&1; then
58- echo "[OK] ble.sh installed successfully" >> "$LOG_FILE"
59- else
60- echo "[KO] ble.sh installation failed (non-critical)" >> "$LOG_FILE"
61- fi
62-fi
63-
6454 # Install ble.sh (Bash Line Editor)
6555 if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then
6656 echo "Installing ble.sh (Bash Line Editor)..." | tee -a "$LOG_FILE"
67- if bash /usr/local/share/archup/post-boot/blesh.sh >> "$LOG_FILE" 2>&1; then
57+ BLESH_OUTPUT=$(bash /usr/local/share/archup/post-boot/blesh.sh 2>&1 | tee -a "$LOG_FILE")
58+ if [ $? -eq 0 ]; then
6859 echo "✓ ble.sh installed successfully" | tee -a "$LOG_FILE"
60+ # Check if it was added to bashrc
61+ if echo "$BLESH_OUTPUT" | grep -q "ble.sh added to .bashrc"; then
62+ echo " → ble.sh configured in ~/.bashrc" | tee -a "$LOG_FILE"
63+ elif echo "$BLESH_OUTPUT" | grep -q "ble.sh already configured"; then
64+ echo " → ble.sh already present in ~/.bashrc" | tee -a "$LOG_FILE"
65+ fi
6966 else
7067 echo "✗ ble.sh installation failed (non-critical)" | tee -a "$LOG_FILE"
7168 fi
@@ -51,21 +51,18 @@ if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then
51 fi51 fi
52 fi52 fi
53 53
54-# Install ble.sh (Bash Line Editor)
55-if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then
56- echo "Installing ble.sh (Bash Line Editor)..." >> "$LOG_FILE"
57- if bash /usr/local/share/archup/post-boot/blesh.sh >> "$LOG_FILE" 2>&1; then
58- echo "[OK] ble.sh installed successfully" >> "$LOG_FILE"
59- else
60- echo "[KO] ble.sh installation failed (non-critical)" >> "$LOG_FILE"
61- fi
62-fi
63-
64 # Install ble.sh (Bash Line Editor)54 # Install ble.sh (Bash Line Editor)
65 if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then55 if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then
66 echo "Installing ble.sh (Bash Line Editor)..." | tee -a "$LOG_FILE"56 echo "Installing ble.sh (Bash Line Editor)..." | tee -a "$LOG_FILE"
67- if bash /usr/local/share/archup/post-boot/blesh.sh >> "$LOG_FILE" 2>&1; then57+ BLESH_OUTPUT=$(bash /usr/local/share/archup/post-boot/blesh.sh 2>&1 | tee -a "$LOG_FILE")
58+ if [ $? -eq 0 ]; then
68 echo "✓ ble.sh installed successfully" | tee -a "$LOG_FILE"59 echo "✓ ble.sh installed successfully" | tee -a "$LOG_FILE"
60+ # Check if it was added to bashrc
61+ if echo "$BLESH_OUTPUT" | grep -q "ble.sh added to .bashrc"; then
62+ echo " → ble.sh configured in ~/.bashrc" | tee -a "$LOG_FILE"
63+ elif echo "$BLESH_OUTPUT" | grep -q "ble.sh already configured"; then
64+ echo " → ble.sh already present in ~/.bashrc" | tee -a "$LOG_FILE"
65+ fi
69 else66 else
70 echo "✗ ble.sh installation failed (non-critical)" | tee -a "$LOG_FILE"67 echo "✗ ble.sh installation failed (non-critical)" | tee -a "$LOG_FILE"
71 fi68 fi

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