From d91a7e36cc330690ef4f5991aa716cafb3e96ab9 Mon Sep 17 00:00:00 2001 From: Harish Date: Fri, 2 Feb 2024 18:59:09 +0530 Subject: [PATCH] remove solution from shell > argument_check.md exercise (#10238) --- topics/shell/argument_check.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/topics/shell/argument_check.md b/topics/shell/argument_check.md index 73ddd12..134b989 100644 --- a/topics/shell/argument_check.md +++ b/topics/shell/argument_check.md @@ -6,18 +6,4 @@ Note: assume the script is executed with an argument 1. Write a script that will check if a given argument is the string "pizza" 1. If it's the string "pizza" print "with pineapple?" - 2. If it's not the string "pizza" print "I want pizza!" - -### Solution - -``` -/usr/bin/env bash - -arg_value=${1:-default} - -if [ $arg_value = "pizza" ]; then - echo "with pineapple?" -else - echo "I want pizza!" -fi -``` + 2. If it's not the string "pizza" print "I want pizza!" \ No newline at end of file