Change all head -1 to head -n 1 to be more POSIXly compliant.

This commit is contained in:
Marcus Meissner 2003-09-02 00:57:01 +00:00 committed by Alexandre Julliard
parent bcd1222650
commit 1fc035d221
1 changed files with 6 additions and 6 deletions

View File

@ -148,30 +148,30 @@ fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
WINE_BIN_NAME=wine.bin WINE_BIN_NAME=wine.bin
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1` WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1`
fi fi
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1` WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1`
fi fi
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
WINE_BIN_NAME=wine WINE_BIN_NAME=wine
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1` WINEBIN=`find $argv0_dir -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1`
fi fi
if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then if [ ! -x $WINEBIN/$WINE_BIN_NAME ] ; then
WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -1` WINEBIN=`find $argv0_dir/../ -maxdepth 1 -perm +0111 -type f -name "$WINE_BIN_NAME" -printf "%h\n" | head -n 1`
fi fi
fi fi
if [ ! -r $WINELIB/libwine.so ] ; then if [ ! -r $WINELIB/libwine.so ] ; then
WINELIB=`find $argv0_dir -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -1` WINELIB=`find $argv0_dir -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -n 1`
fi fi
if [ ! -r $WINELIB/libwine.so ] ; then if [ ! -r $WINELIB/libwine.so ] ; then
WINELIB=`find $argv0_dir/../ -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -1` WINELIB=`find $argv0_dir/../ -maxdepth 2 -name 'libwine.so' -printf "%h\n" | head -n 1`
fi fi
if [ -x $WINEBIN/wineserver ] ; then if [ -x $WINEBIN/wineserver ] ; then