mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 09:31:11 +00:00
Adjustment of file structure
This commit is contained in:
@@ -15,9 +15,9 @@ export LANG=C
|
|||||||
# Get script directory and source common functions
|
# Get script directory and source common functions
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
source "$SCRIPT_DIR/../lib/common.sh"
|
source "$SCRIPT_DIR/../lib/common.sh"
|
||||||
source "$SCRIPT_DIR/../lib/paginated_menu.sh"
|
source "$SCRIPT_DIR/../lib/menu_paginated.sh"
|
||||||
source "$SCRIPT_DIR/../lib/app_selector.sh"
|
source "$SCRIPT_DIR/../lib/ui_app_selector.sh"
|
||||||
source "$SCRIPT_DIR/../lib/batch_uninstall.sh"
|
source "$SCRIPT_DIR/../lib/uninstall_batch.sh"
|
||||||
|
|
||||||
# Note: Bundle preservation logic is now in lib/common.sh
|
# Note: Bundle preservation logic is now in lib/common.sh
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ set -euo pipefail
|
|||||||
# Get script directory and source dependencies
|
# Get script directory and source dependencies
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
source "$SCRIPT_DIR/common.sh"
|
source "$SCRIPT_DIR/common.sh"
|
||||||
source "$SCRIPT_DIR/simple_menu.sh"
|
source "$SCRIPT_DIR/menu_simple.sh"
|
||||||
|
|
||||||
# Config file path
|
# Config file path
|
||||||
WHITELIST_CONFIG="$HOME/.config/mole/whitelist"
|
WHITELIST_CONFIG="$HOME/.config/mole/whitelist"
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ EOF
|
|||||||
run env HOME="$HOME" PROJECT_ROOT="$PROJECT_ROOT" bash --noprofile --norc << 'EOF'
|
run env HOME="$HOME" PROJECT_ROOT="$PROJECT_ROOT" bash --noprofile --norc << 'EOF'
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
source "$PROJECT_ROOT/lib/common.sh"
|
source "$PROJECT_ROOT/lib/common.sh"
|
||||||
source "$PROJECT_ROOT/lib/batch_uninstall.sh"
|
source "$PROJECT_ROOT/lib/uninstall_batch.sh"
|
||||||
|
|
||||||
# Test stubs
|
# Test stubs
|
||||||
request_sudo_access() { return 0; }
|
request_sudo_access() { return 0; }
|
||||||
|
|||||||
Reference in New Issue
Block a user