From 9a1019170f30ff09fba6ab4cc2291cddfa721136 Mon Sep 17 00:00:00 2001 From: milindchawre-tomtom Date: Thu, 2 May 2024 21:01:12 +0530 Subject: [PATCH] Fixes #762 - ensure uninstall script is present in marketplace app --- bin/lint_required_files.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/lint_required_files.rb b/bin/lint_required_files.rb index ef4ab4f4..646d27b7 100755 --- a/bin/lint_required_files.rb +++ b/bin/lint_required_files.rb @@ -44,6 +44,11 @@ exit_code = 1 end + unless (File.exist?("#{dirname}/uninstall.sh") || File.exist?("#{dirname}/app.yaml")) + puts "#{dirname} doesn't contain an app.yaml or uninstall.sh (one or the other is required)" + exit_code = 1 + end + unless (File.exist?("#{dirname}/install.sh") || File.exist?("#{dirname}/app.yaml")) yaml = YAML.load_file("#{dirname}/manifest.yaml")