Fix minor bug

This commit is contained in:
VetheonGames 2024-06-10 21:56:12 -06:00
parent 52ce1a81ed
commit bbf36c683a

View File

@ -44,20 +44,20 @@ fi
sudo mkdir -p /usr/bin/PixelRidge-Softworks/Ruby/ sudo mkdir -p /usr/bin/PixelRidge-Softworks/Ruby/
# Give execute permissions to the user # Give execute permissions to the user
sudo chown -R $(whoami):$(whoami) /usr/bin/PixelRidge-Softworks/Ruby/ sudo chown -R "$(whoami)":"$(whoami)" /usr/bin/PixelRidge-Softworks/Ruby/
sudo chmod -R +x /usr/bin/PixelRidge-Softworks/Ruby/ sudo chmod -R +x /usr/bin/PixelRidge-Softworks/Ruby/
# Clone the repository # Clone the repository
sudo git clone https://git.pixelridgesoftworks.com/PixelRidge-Softworks/Ru-b2-SQL-Backups.git /usr/bin/PixelRidge-Softworks/Ruby/ sudo git clone https://git.pixelridgesoftworks.com/PixelRidge-Softworks/Ru-b2-SQL-Backups.git /usr/bin/PixelRidge-Softworks/Ruby/
# Install required gems # Install required gems
cd /usr/bin/PixelRidge-Softworks/Ruby/Ru-b2-SQL-Backups cd /usr/bin/PixelRidge-Softworks/Ruby/Ru-b2-SQL-Backups || exit
bundle install bundle install
# Prompt user to run the program for the first time # Prompt user to run the program for the first time
read -p "Do you want to run the program for the first time? (y/n) " answer read -p "Do you want to run the program for the first time? (y/n) " answer
if [[ $answer =~ ^[Yy]$ ]]; then if [[ $answer =~ ^[Yy]$ ]]; then
cd /usr/bin/PixelRidge-Softworks/Ruby/Ru-b2-SQL-Backups cd /usr/bin/PixelRidge-Softworks/Ruby/Ru-b2-SQL-Backups || exit
./rub2 ./rub2
else else
exit 0 exit 0