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

fixed backtick issues preventing script from working on linux, added … #9

Closed sdoyle88 closed 2 years ago

sdoyle88 commented 3 years ago

Also added bang line to top of script for /bin/bash

Description of changes: The way the script was originally written with backticks was causing escaping issues on Linux systems (Ubuntu 20.04). Re-wrote all backtick entries to have $(...) calls instead as this prevents the issue (following Shell Check issue 2006)

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