Skip to content

Commit

Permalink
fixbug
Browse files Browse the repository at this point in the history
  • Loading branch information
yong.teng committed Mar 2, 2016
1 parent 8267fb9 commit 72e6756
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions release/release
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,11 @@ condense() {
fi
MSG=$MSG" file $source_file to $target_file"

note $MSG" success"

command -v java >/dev/null 2>&1
if [ $? == 0 ]; then
java -jar ${YUICOMPRESSOR_JAR} --type ${type} --charset ${CHARSET} "$source_file" -o "$target_file" || { warning "$MSG failure"; note "so copy $source_file to $target_file"; \cp $source_file $target_file; }
{java -jar ${YUICOMPRESSOR_JAR} --type ${type} --charset ${CHARSET} "$source_file" -o "$target_file"; note $MSG" success";} || { warning "$MSG failure"; note "so copy $source_file to $target_file"; \cp $source_file $target_file; }
else
warning '"could not find command "java"'
\cp $source_file $target_file
warning 'could not find command "java"'; \cp $source_file $target_file;
fi

chown ${USER}:${GROUP} "$target_file"
Expand Down

0 comments on commit 72e6756

Please sign in to comment.