summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/ChangeLog2
-rw-r--r--src/util/libupdate.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/util/ChangeLog b/src/util/ChangeLog
index bfd94db16..1d820d128 100644
--- a/src/util/ChangeLog
+++ b/src/util/ChangeLog
@@ -1,5 +1,7 @@
Tue Nov 1 14:49:00 1994 (tytso@rsx-11)
+ * libupdate.sh: Change use of "head -1" to "sed 1q"
+
* configure.in:
* Makefile.in:
* libupdate.sh: Add support for the new libupdate shell script.
diff --git a/src/util/libupdate.sh b/src/util/libupdate.sh
index 3abcdd114..b8fc5158d 100644
--- a/src/util/libupdate.sh
+++ b/src/util/libupdate.sh
@@ -22,7 +22,7 @@ oblist=$2
dir=$3
if test "$force" != yes -a -f $library && \
- ls -lt $library $oblist | head -1 | grep $library$ > /dev/null || \
+ ls -lt $library $oblist | sed 1q | grep $library$ > /dev/null || \
test -z "`cat $oblist`"
then
exit 0