Running bash script error

Trying to automate backups. When I execute this script…

#!/bin/bash

while true; do
    echo "Select an option:"
    echo "1. DRAWER"
    echo "2. WD500"
    echo "3. SEAGATE 2.5
    echo "4. Exit"
    
    read -p "Enter your choice: " choice
    
    case $choice in
        1) mount --uuid e6044f7f-1167-4904-a50a-5114ddee9253 /mnt/out
           rsync -av --delete --exclude '.cache' /home/ion/ /mnt/out
           umount /dev/disk/by-uuid/e6044f7f-1167-4904-a50a-5114ddee9253 /mnt/out;;

        4) echo "Exiting..."; exit 0 ;;
        *) echo "Invalid option" ;;
    esac
done

I get this error…

[ion@ion-desk BASH]$ ./bubox1.sh
./bubox1.sh: line 18: unexpected EOF while looking for matching `"'
[ion@ion-desk BASH]$ 

I can’t see what I’m doing wrong. Please advise.

Missing " at end of echo "3. SEAGATE 2.5.

1 Like

Thank you VERY MUCH. Being 81 years old is no excuse.

2 Likes

Wow …. so young and so linux acute! :+1:

1 Like

You are off to good start, keep on trucking.

Pudge

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.