some modification on instpkg
[cmdllinux.git] / scripts / _chkfile
blob06ceb6b714b36b7550ff8269c42003a13b3a4471
1 #! /bin/bash
2 #*#_check_if_exists_file
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