From 462e146ef6c4570707417adfd1c99c81da1e426f Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Wed, 21 Apr 2021 14:34:18 -0400 Subject: [PATCH] fix: Suppress deprecation warning when writing to Info_Output.yml during installation (#294) --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 825bb1af..17a5f800 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -315,7 +315,7 @@ serverless deploy --region $region --stage $stage || { echo >&2 "Failed to deplo ## Output to console and to file Info_Output.yml. tee not used as it removes the output highlighting. echo -e "Deployed Successfully.\n" touch Info_Output.yml -serverless info --verbose --region $region --stage $stage && serverless info --verbose --region $region --stage $stage > Info_Output.yml +SLS_DEPRECATION_DISABLE=* serverless info --verbose --region $region --stage $stage && SLS_DEPRECATION_DISABLE=* serverless info --verbose --region $region --stage $stage > Info_Output.yml #The double call to serverless info was a bugfix from Steven Johnston #(may not be needed)