From 43f2a3723efda5ce2235eaddd1840c1e1858cc69 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 20 Jun 2024 19:06:56 +0200 Subject: Testing --- install.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'install.sh') 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 "$@" -- cgit v1.2.3