repo.or.cz
/
cmdllinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
improve some other setuptool
[cmdllinux.git]
/
scripts
/
_check_if_exists_file
blob
509276541e243e7ac5e4dba8262ac0ba093c954f
1
#! /bin/bash
2
3
#check if files found in current dir and subdirs exists on destination dir and subdirs
4
[ !
-d
"
$1
"
] &&
exit
1
5
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
"
10
fi
11
done