Skip to content

Commit

Permalink
useless call of cat
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed May 19, 2020
1 parent 143b9ed commit d12bb38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/ftar
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ shift $((OPTIND - 1))
[ "$1" ] || usage

# detect target fstype
targetfstype=`cat /proc/mounts | awk -vt="$target" '{if($2==t){print $3}}'`
targetfstype=`awk -vt="$target" '{if($2==t){print $3}}' /proc/mounts`
if [ "$targetfstype" != "nfs" ]; then
xattrs="--xattrs --xattrs-include=*.* --selinux --acl"
else
Expand Down
2 changes: 1 addition & 1 deletion examples/simple

0 comments on commit d12bb38

Please sign in to comment.