Skip to content

Commit

Permalink
case statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dolevf committed Nov 26, 2023
1 parent 0e3af45 commit f0e77cd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ch12/exercise_solution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ check(){
result="false"

case "${check_type}" in
file)
if check_file_or_directory "${indicator}"; then
result="true"
fi
;;
directory)
file|directory)
if check_file_or_directory "${indicator}"; then
result="true"
fi
Expand Down

0 comments on commit f0e77cd

Please sign in to comment.