3 # ============LICENSE_START=======================================================
5 # ================================================================================
6 # Copyright (C) 2021 Nokia. All rights reserved.
7 # ================================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
23 generation_directory=$1
25 remove_generated_directory() {
26 check_arguments $arguments_number $EXPECTED_1_ARG
27 echo "Removing generated directory: $1"
32 check_arguments $arguments_number $EXPECTED_1_ARG
33 directory_to_remove="./$generation_directory/"
34 if [ -d "$directory_to_remove" ]
36 remove_generated_directory $directory_to_remove
38 echo "Nothing to clean. No directory: $directory_to_remove"