atb -> etb (escape tar bomb)
This commit is contained in:
parent
dc513b5c70
commit
cc4bc5ef2c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ tmuxhglog() {
|
|||
|
||||
# Escape potential tarbombs
|
||||
# http://www.commandlinefu.com/commands/view/6824/escape-potential-tarbombs
|
||||
atb() {
|
||||
etb() {
|
||||
l=$(tar tf $1);
|
||||
if [ $(echo "$l" | wc -l) -eq $(echo "$l" | grep $(echo "$l" | head -n1) | wc -l) ];
|
||||
then tar xf $1;
|
||||
|
|
Loading…
Reference in a new issue