scan.sh script