github.com/defanghe/fabric@v2.1.1+incompatible/scripts/check_file_name_spaces.sh (about) 1 #!/bin/bash 2 # 3 # Copyright IBM Corp. All Rights Reserved. 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 8 set -e 9 10 fabric_dir="$(cd "$(dirname "$0")/.." && pwd)" 11 12 echo "Checking files for spaces in file names..." 13 14 filenames=$(find "$fabric_dir" -name '* *') 15 if [ -n "$filenames" ]; then 16 echo "The following file names contain spaces:" 17 echo "$filenames" 18 echo "File names must not contain spaces." 19 exit 1 20 fi