aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh18
1 files changed, 10 insertions, 8 deletions
diff --git a/install.sh b/install.sh
index 6cb4a19..e7b9181 100755
--- a/install.sh
+++ b/install.sh
@@ -26,6 +26,9 @@ if [ ! -d "$TRASH_DIR" ]; then
fi
fi
+# Move log file to Trash directory
+mv -f "$LOG_FILE" "$TRASH_DIR/"
+
# Redirect stderr to both stderr and log file
exec 2> >(tee -a "$LOG_FILE")
@@ -176,11 +179,6 @@ install_zsh_plugins() {
fi
}
-# install tailscale
-if ! command -v tailscale &>/dev/null; then
- curl -fsSL https://tailscale.com/install.sh | bash
-fi
-
#==============================================================================
#======================================
@@ -819,6 +817,12 @@ setup_tmux_plugins() {
fi
}
+install_tailscale() {
+ if ! command -v tailscale &>/dev/null; then
+ curl -fsSL https://tailscale.com/install.sh | bash
+ fi
+}
+
setup_ssh() {
SSH_DIR="$HOME/.ssh"
if ! [[ -f "$SSH_DIR/authorized_keys" ]]; then
@@ -844,6 +848,7 @@ linux_specific_steps() {
#install_nvm
#install_node
#install_yarn
+ install_tailscale
linux_install_packages
install_zsh_plugins
setup_tmux_plugins
@@ -920,7 +925,4 @@ main() {
handle_complete "Installation completed successfully."
}
-# Move log file to Trash directory
-mv -f "$LOG_FILE" "$TRASH_DIR/"
-
main "$@"