Fix "unexpected operator" warning on Linux

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2439 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2012-01-27 22:18:09 +00:00
parent 3e4432dfae
commit 05acd64579

2
refine
View File

@ -95,7 +95,7 @@ add_option() {
load_configs() { load_configs() {
TEMP_CONFIG=$(mktemp -t refine.XXXXXXX) TEMP_CONFIG=$(mktemp -t refine.XXXXXXX)
if [ "${TEMP_CONFIG}" == "" ] ; then if [ "${TEMP_CONFIG}" = "" ] ; then
error "Could not create temporary file to load configurations" error "Could not create temporary file to load configurations"
fi fi
cat $1 | egrep "^[A-Z]" | sed 's/^\(.*\)$/export \1/' > ${TEMP_CONFIG} cat $1 | egrep "^[A-Z]" | sed 's/^\(.*\)$/export \1/' > ${TEMP_CONFIG}