Commit Diff


commit - 6be5987f8d4bc64ec4365305df21903a04fc3689
commit + ae548bb9798936b20127c5f387dbfaf64984b47a
blob - c005a38e7a8aeaaf535f92f2dbab5e93c02ea861
blob + faf6136104f527b47285fc0a93f460dd705ee181
--- notify.pl
+++ notify.pl
@@ -34,6 +34,8 @@ my $function = $ARGV[0] || "empty";
 my $function_variable = $ARGV[1] || "empty";
 my $message = $ARGV[2] || "empty";
 
+$function_variable = substr $function_variable, 0, -4 if ($function_variable =~ m/.txt/);
+
 # define the prices for the different components of the VM
 my $base_price = '67';
 my %memory_prices = ('2G' => '10', '4G' => '30', '8G' => '70');