summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2005-12-21 04:10:33 +0000
committerneilbrown <neilbrown>2005-12-21 04:10:33 +0000
commit1d715bffd42b582d99f16f5eca46b9cc9b71dbad (patch)
tree5c27f07f29d31582d0b4328fae1ad84f2ea4d60b /utils
parenta021f1f459d8fd471123848c8f83a73a5fc1629e (diff)
downloadnfs-utils-1d715bffd42b582d99f16f5eca46b9cc9b71dbad.tar.gz
nfs-utils-1d715bffd42b582d99f16f5eca46b9cc9b71dbad.tar.xz
nfs-utils-1d715bffd42b582d99f16f5eca46b9cc9b71dbad.zip
head/tail fixes
Diffstat (limited to 'utils')
-rw-r--r--utils/gssd/gss_destroy_creds2
-rwxr-xr-xutils/nhfsstone/nhfsrun2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/gssd/gss_destroy_creds b/utils/gssd/gss_destroy_creds
index 666bdd9..1f978d1 100644
--- a/utils/gssd/gss_destroy_creds
+++ b/utils/gssd/gss_destroy_creds
@@ -1,6 +1,6 @@
#!/bin/bash
-path=`mount|grep rpc_pipefs|head -1|awk '{ print $3 }'`
+path=`mount|grep rpc_pipefs|awk '{ print $3;exit }'`
if [ -z "$path" ]; then
echo "unable to find rpc_pipefs; is it mounted?"
diff --git a/utils/nhfsstone/nhfsrun b/utils/nhfsstone/nhfsrun
index dfc24eb..a0ac0f8 100755
--- a/utils/nhfsstone/nhfsrun
+++ b/utils/nhfsstone/nhfsrun
@@ -54,6 +54,6 @@ LOAD=$START
while [ $LOAD -le $END ]; do
echo nhfsstone -l $LOAD
nhfsstone -l $LOAD >> $OUTFILE
- tail -1 $OUTFILE
+ tail -n 1 $OUTFILE
LOAD=`expr $LOAD + $INCR`
done