You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/available/extract.plugin.bash
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ End-Of-Usage
37
37
38
38
local -r filename=$(basename -- $1)
39
39
local -r filedirname=$(dirname -- $1)
40
-
local targetdirname=$(sed 's/\(\.tar\.bz2$\|\.tbz$\|\.tbz2$\|\.tar\.gz$\|\.tgz$\|\.tar$\|\.tar\.xz$\|\.txz$\|\.tar\.Z$\|\.7z$\)//g'<<<$filename)
40
+
local targetdirname=$(sed 's/\(\.tar\.bz2$\|\.tbz$\|\.tbz2$\|\.tar\.gz$\|\.tgz$\|\.tar$\|\.tar\.xz$\|\.txz$\|\.tar\.Z$\|\.7z$\|\.nupkg$\|\.zip$\|\.war$\|\.jar$\)//g'<<<$filename)
41
41
if [ "$filename"="$targetdirname" ];then
42
42
# archive type either not supported or it doesn't need dir creation
43
43
targetdirname=""
@@ -61,9 +61,9 @@ End-Of-Usage
61
61
*.rpm) rpm2cpio "$1"| cpio -idm${verbose} ;;
62
62
*.tar) tar "x${verbose}f""$1" -C "$filedirname/$targetdirname" ;;
0 commit comments