silence error from zsh when datafile is created

This commit is contained in:
rupa committed 2016-07-21 13:10:24 -04:00
1 parent 335717ef08
commit 78f0d97d3d
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ _z() {
# maintain the data file
local tempfile="$datafile.$RANDOM"
awk < <( _z_dirs ) -v path="$*" -v now="$(date +%s)" -F"|" '
awk < <(_z_dirs 2>/dev/null) -v path="$*" -v now="$(date +%s)" -F"|" '
BEGIN {
rank[path] = 1
time[path] = now