Skip to content

Commit ac68eb5

Browse files
authored
Merge pull request #113 from icyfork/allow_the_script_to_run_as_other_than_aws_or_laws
Allow the script to run as other than "aws" or "laws"
2 parents cb930a4 + b7aaa58 commit ac68eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws

+1-1
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ $home = get_home_directory();
11001100
# Figure out $cmd. If the program is run as other than "aws", then $0 contains
11011101
# the command. This way, you can link aws to the command names (with or without
11021102
# ec2 or s3 prefix) and not have to type "aws".
1103-
unshift @ARGV, $1 if $0 =~ /^(?:.*[\\\/])?(?:(?:ec2|pa|s3|sqs|sdb|rds)-?)?(.+?)(?:\..+)?$/ && $1 !~ /^l?aws/;
1103+
unshift @ARGV, $1 if $0 =~ /^(?:.*[\\\/])?(?:(?:ec2|pa|s3|sqs|sdb|rds)-?)?(.+?)(?:\..+)?$/ && $1 !~ /^\w*aws/;
11041104

11051105

11061106
# parse meta-parameters, leaving parameters in @argv

0 commit comments

Comments
 (0)