mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 15:39:42 +00:00
🐛 update install
This commit is contained in:
@@ -69,8 +69,7 @@ resolve_source_dir() {
|
||||
# 3) Fallback: fetch repository to a temp directory (works for curl | bash)
|
||||
local tmp
|
||||
tmp="$(mktemp -d)"
|
||||
# Guard against set -u when trap runs outside the local scope
|
||||
trap '[[ -n "${tmp:-}" ]] && rm -rf "$tmp"' EXIT
|
||||
trap 'rm -rf "$tmp"' EXIT
|
||||
|
||||
echo "Fetching Mole source..."
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
@@ -300,6 +299,7 @@ main() {
|
||||
setup_path
|
||||
|
||||
echo ""
|
||||
echo "══════════════════════════════════════════════════════════════════════"
|
||||
log_success "Mole installed successfully!"
|
||||
echo ""
|
||||
echo "Usage:"
|
||||
@@ -313,6 +313,8 @@ main() {
|
||||
echo " $INSTALL_DIR/mole uninstall # Remove applications"
|
||||
fi
|
||||
echo ""
|
||||
echo "Configuration stored in: $CONFIG_DIR"
|
||||
echo "══════════════════════════════════════════════════════════════════════"
|
||||
}
|
||||
|
||||
# Run installation
|
||||
|
||||
Reference in New Issue
Block a user