-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_cuttingimages.zsh
More file actions
executable file
·34 lines (28 loc) · 976 Bytes
/
check_cuttingimages.zsh
File metadata and controls
executable file
·34 lines (28 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env zsh
fn() {
pngs01=( ${(f)"$(find pickat_v2/ImagesForV3.xcassets -type f -name '*.png')"} )
pngs02=( ${(f)"$(find ~/Dropbox/\#\#_02_Syrup\ Table/\#\#_Syrup\ Table\ 3.0_201506/\#\#_배포용GUID_JPG/\#\#_IOS/@@_png@2x -type f -name '*.png')"} )
count=0
for png02 in $pngs02; do
count=$(expr $count + 1)
if [[ $1 != 'summary' ]]; then
print "Finding file : ${png02:t}"
fi
foundFile=''
for png01 in $pngs01; do
if [[ ${png02:t} = ${png01:t} ]]; then
if [[ $1 != 'summary' ]]; then
print ">>> File Found!!! : ${png01}"
fi
foundFile=$png01
diff -q $png02 $png01
break
fi
done
if [[ $foundFile = '' ]]; then
print ">>> File * Not * Found : ${png01}"
fi
done
print "TOTAL FILE COUNT : $count"
}
fn $@