#!/bin/bash # Mount remote folders in thunar function main_menu() { while [ 1=1 ] do echo "[1] - Mount remote folder in Thunar" echo "[2] - Quick Mount" echo echo -n "Type here: " read choice if [ "$choice" = "1" ] then mount_thuner elif [ "$choice" = "2" ] thunar sftp://192.168.0.21:121 elif [ "$choice" = "q" ] then exit 0; fi done } function mount_thunar() { clear echo -n "Enter ip address: " read ip echo "Enter port: " read port echo "*running thunar sftp://$ip:$port" thunar sftp://$ip:$port } main_menu