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