improve some other setuptool
[cmdllinux.git] / scripts / _check_if_exists_file
blob509276541e243e7ac5e4dba8262ac0ba093c954f
1 #! /bin/bash
3 #check if files found in current dir and subdirs exists on destination dir and subdirs
4 [ ! -d "$1" ] && exit 1
6 find -type f -printf "%f\n" | \
7 while read file; do
8 if [ ! -z "$(find "$1" -type f -name "$file")" ]; then
9 echo "$file"
11 done