Skip to content

Commit d4c1d93

Browse files
committed
Ajout de nouveaux scripts pour la gestion des applications TUI et web, incluant des fonctions d'installation et de suppression, ainsi que des améliorations dans le script de configuration.
1 parent ddd0b2e commit d4c1d93

8 files changed

Lines changed: 4 additions & 26 deletions

File tree

archlinux/setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ cd "$SCRIPT_DIR" || exit
2222
# Add local bin to PATH (since we installed binaries there)
2323
export PATH="$HOME/.local/bin:$PATH"
2424

25+
# Installation des scripts dans ~.local/bin
26+
mkdir -p ~/.local/bin
27+
cp "$SCRIPT_DIR/bin/"* ~/.local/bin/
28+
2529
# Source all script under install/system with confirmation
2630
if gum confirm "Do you want to run system setup scripts?"; then
2731
for script in "$SCRIPT_DIR/install/system/"*.sh; do

common/install/bootstrap.sh

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ function setup(){
4141
# Ensure application directory exists for update-desktop-database
4242
mkdir -p ~/.local/share/applications
4343

44-
# Installation des scripts dans ~.local/bin
45-
mkdir -p ~/.local/bin
46-
cp "$SCRIPT_DIR/../bin/"* ~/.local/bin/
47-
4844
# Install the default .profile
4945
cp "$SCRIPT_DIR/../default/profile" ~/.profile
5046

@@ -125,26 +121,4 @@ function check(){
125121
if $all_matched; then
126122
show_success "Configuration"
127123
fi
128-
129-
# Check if all scripts are present in ~/.local/bin
130-
local missing_scripts=()
131-
for script in "$SCRIPT_DIR/../bin/"*; do
132-
local script_name
133-
script_name=$(basename "$script")
134-
if [ ! -f "$HOME/.local/bin/$script_name" ]; then
135-
missing_scripts+=("$script_name")
136-
fi
137-
done
138-
if [ ${#missing_scripts[@]} -eq 0 ]; then
139-
show_success "Local bin scripts"
140-
else
141-
show_error "Local bin scripts" "Missing scripts: ${missing_scripts[*]}"
142-
fi
143-
144-
# Check if current shell is bash
145-
if [ "$SHELL" = "/bin/bash" ] || [ "$SHELL" = "/usr/bin/bash" ] || [ "$SHELL" = "$HOME/.local/bin/bash" ]; then
146-
show_success "Default shell"
147-
else
148-
show_warning "Default shell" "Your default shell is not bash (It's $SHELL). Please change it to bash. By running 'chsh -s $(which bash)'"
149-
fi
150124
}

0 commit comments

Comments
 (0)