Skip to content

Commit f369887

Browse files
committed
write to correct directory
1 parent 210e423 commit f369887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mkdir -p target/$profilename/securitygroups
2424
mkdir -p target/$profilename/subnets
2525

2626
echo INFO: graphing default dependencies
27-
aws-visualizer -p $profilename --directory target/$profilename -r $profileregion $@
27+
aws-visualizer -p $profilename --directory target/$profilename/default -r $profileregion $@
2828
echo INFO: graphing with subnets
2929
aws-visualizer -p $profilename --directory target/$profilename/subnets -r $profileregion --use-subnets $@
3030
echo INFO: graphing with security groups
@@ -40,7 +40,7 @@ if [ -n "$DOT" ] ; then
4040
dot -Tpng -o $(dirname $file)/$(basename $file .dot).png $file
4141
done
4242
if [ "$(uname)" == "Darwin" ] ; then
43-
open target/*/*.png
43+
open $(sed -e 's/\.dot/\.png/g' <<< $DOTFILE)
4444
else
4545
echo INFO: Done. checkout target/ subdirectories
4646
fi

0 commit comments

Comments
 (0)