From cb9e0662a3b4cc41d9ff7c26297f5fad41a82e45 Mon Sep 17 00:00:00 2001 From: Shawn Woodford Date: Thu, 4 May 2017 17:21:25 -0400 Subject: [PATCH] improve pause function --- ec2-elb-upload-ssl-cert.sh | 2 +- ec2-import-vpcsg-rules-cloudfront.sh | 2 +- ec2-import-vpcsg-rules-pingdom.sh | 2 +- ec2-update-vpcsg-rules-pingdom.sh | 2 +- elastic-beanstalk-update-hostnames.sh | 2 +- route53-export-zones.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ec2-elb-upload-ssl-cert.sh b/ec2-elb-upload-ssl-cert.sh index d143e94..db77c5d 100755 --- a/ec2-elb-upload-ssl-cert.sh +++ b/ec2-elb-upload-ssl-cert.sh @@ -38,7 +38,7 @@ function fail(){ # Pause function pause(){ - read -p "Press any key to continue..." + read -n 1 -s -p "Press any key to continue..." echo } diff --git a/ec2-import-vpcsg-rules-cloudfront.sh b/ec2-import-vpcsg-rules-cloudfront.sh index 72fdffb..6c5bc1c 100755 --- a/ec2-import-vpcsg-rules-cloudfront.sh +++ b/ec2-import-vpcsg-rules-cloudfront.sh @@ -15,7 +15,7 @@ TOTALIPS=$(echo "$IPLIST" | wc -l) # Functions function pause(){ - read -p "Press any key to continue..." + read -n 1 -s -p "Press any key to continue..." echo } diff --git a/ec2-import-vpcsg-rules-pingdom.sh b/ec2-import-vpcsg-rules-pingdom.sh index b85e168..a7a2ff5 100755 --- a/ec2-import-vpcsg-rules-pingdom.sh +++ b/ec2-import-vpcsg-rules-pingdom.sh @@ -19,7 +19,7 @@ DEBUGMODE=0 # Functions function pause(){ - read -p "Press any key to continue..." + read -n 1 -s -p "Press any key to continue..." echo } diff --git a/ec2-update-vpcsg-rules-pingdom.sh b/ec2-update-vpcsg-rules-pingdom.sh index 160be75..50b5b99 100755 --- a/ec2-update-vpcsg-rules-pingdom.sh +++ b/ec2-update-vpcsg-rules-pingdom.sh @@ -22,7 +22,7 @@ DEBUGMODE="0" # Functions function Pause(){ - read -p "Press any key to continue..." + read -n 1 -s -p "Press any key to continue..." echo } diff --git a/elastic-beanstalk-update-hostnames.sh b/elastic-beanstalk-update-hostnames.sh index 3322c35..f08e86f 100755 --- a/elastic-beanstalk-update-hostnames.sh +++ b/elastic-beanstalk-update-hostnames.sh @@ -19,7 +19,7 @@ function fail(){ # Pause function pause(){ - read -p "Press any key to continue..." + read -n 1 -s -p "Press any key to continue..." echo } diff --git a/route53-export-zones.sh b/route53-export-zones.sh index e3c241b..abf2cb5 100755 --- a/route53-export-zones.sh +++ b/route53-export-zones.sh @@ -19,7 +19,7 @@ function fail(){ # Pause function pause(){ - read -p "Press any key to continue..." + read -n 1 -s -p "Press any key to continue..." echo }