repo.or.cz
/
sunny256-utils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mdisk: Delete unnecessary use of `strip_diskname` and use it elsewhere
[sunny256-utils.git]
/
bpakk
blob
9c19553a1c4fcd4e6aac507bd3f195f9ed2e1170
1
#!/bin/sh
2
3
# bpakk
4
# File ID: 2a4e251e-7b6f-11df-b25f-00219bfade9b
5
6
if
[
"
$1
"
=
"-d"
];
then
7
base64
-di
| gunzip
--stdout --force
8
else
9
gzip
-9
| base64
-w
8
"$@"
|
tr
'
\n
'
' '
|
sed
's/ $//'
10
fi