aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-06-20 19:06:56 +0200
committersrdusr <trevorgray@srdusr.com>2024-06-20 19:06:56 +0200
commit43f2a3723efda5ce2235eaddd1840c1e1858cc69 (patch)
treeceb8f73103c26d1fd5c5cba42c1d2a601d0baa15 /install.sh
parent9246f68def2e18bc92658f3fc637008109abbd73 (diff)
downloaddotfiles-43f2a3723efda5ce2235eaddd1840c1e1858cc69.tar.gz
dotfiles-43f2a3723efda5ce2235eaddd1840c1e1858cc69.zip
Testing
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 "$@"