aws-samples / ec2-classic-resource-finder

This script enables the identification of resources running in Amazon EC2 Classic
MIT No Attribution
131 stars 82 forks source link

Add in bash path #2

Closed gordonmurray closed 2 years ago

gordonmurray commented 3 years ago

Issue #, if available:

Error running on Ubuntu, ./Classic-Resource-Finder.sh: 28: [[: not found

Description of changes:

Added in a bash path. This avoids an error of:

~ ./Classic-Resource-Finder.sh 
./Classic-Resource-Finder.sh: 28: [[: not found
./Classic-Resource-Finder.sh: 1: Syntax error: redirection unexpected

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

aalacuarta commented 3 years ago

Give execute permission to your script: chmod +x /path/to/yourscript.sh and use bash, ubuntu default is dash. bash ./path/to/yourscript.sh