summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-16 16:51:31 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-16 16:58:06 -0700
commit0fc2d1c2be1f6fdfb2ae5a84fcbde8ec4338ac53 (patch)
treeab18b9eb4e6d869e3ba74f2a246b67fb61c3bd9d /functions
parent7169faf1fe8d8e4915612e887c30b35e0ec4df9d (diff)
downloadvyatta-op-0fc2d1c2be1f6fdfb2ae5a84fcbde8ec4338ac53.tar.gz
vyatta-op-0fc2d1c2be1f6fdfb2ae5a84fcbde8ec4338ac53.zip
fix typo in tech-support script
(cherry picked from commit 0f2d5e4e6cc39c085c0f84ce13f08e208abe356d)
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/tech-support2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/tech-support b/functions/tech-support
index 5d92710..8765959 100755
--- a/functions/tech-support
+++ b/functions/tech-support
@@ -348,7 +348,7 @@ for path in /opt/vyatta/config/active/system/login/user/* ; do
root) file="/root/.bash_history";;
*) file="/home/$user/.bash_history";;
esac;
-cat .bash_history | gawk '/^#[0-9]*/ {t = substr($0,2); next} {print strftime("%FT%T%z", t) " " $0}' | sort -u
+ cat $file | gawk '/^#[0-9]*/ {t = substr($0,2); next} {print strftime("%FT%T%z", t) " " $0}' | sort -u
done
header Login History