Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 0da5734

Browse files
fixed bug: cut_release.sh was using diff -q backwards and not suppressing the useless stdout
1 parent caafe31 commit 0da5734

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cut-release.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ if [ -n "$(svn stat "$VERSION_BASE/trunk")" ]; then
123123
panic "Uncommitted changes"
124124
fi
125125

126+
function diffq() {
127+
! diff -q "$@" > /dev/null
128+
}
129+
126130
function sync() {
127131
local action="$1"
128132
local src_dir="$2"
@@ -138,7 +142,7 @@ function sync() {
138142
for src_file in "$src_dir"/*."$ext"; do
139143
dest_file="$dest_dir"/"$(basename "$src_file")"
140144
if ! [ -e "$dest_file" ] || \
141-
diff -q "$src_file" "$dest_file"; then
145+
diffq "$src_file" "$dest_file"; then
142146
"$action" "$src_file" "$dest_file"
143147
fi
144148
done

0 commit comments

Comments
 (0)