This website works better with JavaScript.
Home
Explore
Help
Sign In
g
/
lch
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
17
Wiki
Activity
Browse Source
0.1r5
pull/1/head
Gustavo Adolfo Mesa Roldan
6 years ago
parent
f3720f0458
commit
eee7b1e90e
1 changed files
with
6 additions
and
8 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-8
lch
+ 6
- 8
lch
View File
@ -1,5 +1,5 @@
#!/bin/bash
#!/bin/bash
VERSION=0.1r
4
VERSION=0.1r
5
if [ "$1" = "version" ] || [ "$1" = "--version" ] || [ "$1" = "-v" ]
if [ "$1" = "version" ] || [ "$1" = "--version" ] || [ "$1" = "-v" ]
then
then
@ -67,21 +67,19 @@ function compressor()
tar -c $2 | bzip2 > $1
tar -c $2 | bzip2 > $1
;;
;;
*.tar.xz)
*.tar.xz)
tar
cfJ $2
;;
tar
-cJf $1 $2
;;
*.bz2)
*.bz2)
bzip2 $2
mv "$2".bz2 $1
bzip2 -c $2 > $1
;;
;;
*.tgz)
*.tgz)
tar -czvf $1 $2
tar -czvf $1 $2
;;
;;
*.gz)
*.gz)
gzip -9 $2
mv "$2".gz $1
gzip -c $2 > $1
;;
;;
*.zip)
*.zip)
zip $1 $2
zip
-r
$1 $2
;;
;;
*.7z)
*.7z)
7za a $1 $2
7za a $1 $2
Write
Preview
Loading…
Cancel
Save