summaryrefslogtreecommitdiff
path: root/functions/tech-support
diff options
context:
space:
mode:
Diffstat (limited to 'functions/tech-support')
-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