mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-06-22 16:24:28 +10:00
Fix syntax
This commit is contained in:
+4
-4
@@ -106,9 +106,9 @@ for selection in $CHOICE; do
|
|||||||
"1")
|
"1")
|
||||||
echo "Running zsh setup script..."
|
echo "Running zsh setup script..."
|
||||||
# Runs local script unless it does not exist or fails
|
# Runs local script unless it does not exist or fails
|
||||||
if [[ -f "zsh.sh "]]; then
|
if [[ -f "zsh.sh" ]]; then
|
||||||
echo "Found local script, running..."
|
echo "Found local script, running..."
|
||||||
bash zsh.sh --skip-watermark; then
|
bash zsh.sh --skip-watermark
|
||||||
else
|
else
|
||||||
bash "$(curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/zsh.sh)" --skip-watermark
|
bash "$(curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/zsh.sh)" --skip-watermark
|
||||||
fi
|
fi
|
||||||
@@ -118,7 +118,7 @@ for selection in $CHOICE; do
|
|||||||
# Runs local script unless it does not exist or fails
|
# Runs local script unless it does not exist or fails
|
||||||
if [[ -f "LazyVim.sh" ]];then
|
if [[ -f "LazyVim.sh" ]];then
|
||||||
echo "Found local script, running..."
|
echo "Found local script, running..."
|
||||||
bash LazyVim.sh; then
|
bash LazyVim.sh
|
||||||
else
|
else
|
||||||
curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/LazyVim.sh | bash
|
curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/LazyVim.sh | bash
|
||||||
fi
|
fi
|
||||||
@@ -195,7 +195,7 @@ for selection in $CHOICE; do
|
|||||||
# Runs local script unless it does no exist or fails
|
# Runs local script unless it does no exist or fails
|
||||||
if [[ -f "./config/PackagesYay.txt" ]]; then
|
if [[ -f "./config/PackagesYay.txt" ]]; then
|
||||||
echo "Found local config"
|
echo "Found local config"
|
||||||
cat ./config/PackagesYay.txt | yay -S --needed --save --answerclean None --answerdiff None - --noconfirm; then
|
cat ./config/PackagesYay.txt | yay -S --needed --save --answerclean None --answerdiff None - --noconfirm
|
||||||
elif ! curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/configs/PackagesYay.txt | yay -S --needed --save --answerclean None --answerdiff None - --noconfirm; then
|
elif ! curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/configs/PackagesYay.txt | yay -S --needed --save --answerclean None --answerdiff None - --noconfirm; then
|
||||||
echo "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
echo "Failed to install Yay packages. You can try running it manually:"
|
echo "Failed to install Yay packages. You can try running it manually:"
|
||||||
|
|||||||
@@ -96,7 +96,8 @@ set +x
|
|||||||
|
|
||||||
# If this user's login shell is already "zsh", do not attempt to switch.
|
# If this user's login shell is already "zsh", do not attempt to switch.
|
||||||
if [ "$(basename -- "$SHELL")" = "zsh" ]; then
|
if [ "$(basename -- "$SHELL")" = "zsh" ]; then
|
||||||
return
|
echo "Successfully instaled zsh configuration"
|
||||||
|
exit 0 # Exit as success
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v chsh >/dev/null; then
|
if command -v chsh >/dev/null; then
|
||||||
@@ -121,5 +122,4 @@ else
|
|||||||
echo "Shell successfully changed to '$zsh'."
|
echo "Shell successfully changed to '$zsh'."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Print commands
|
echo "Successfully installed zsh"
|
||||||
set -x
|
|
||||||
Reference in New Issue
Block a user