This website works better with JavaScript.
Home
Help
Register
Sign In
mcy
/
scripts
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Activity
Browse Source
[archivers] xzize: output file to same directory
Fix bug that caused the output file to always be generated in the current working directory.
master
Matteo Cypriani
1 year ago
parent
4147272b47
commit
d321ec9761
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
archivers/xzize.sh
+ 1
- 1
archivers/xzize.sh
View File
@ -36,7 +36,7 @@ test_extension()
NEWEXTENSION
=
"
$3
"
fi
BASE
=
"
$(
basename
"
$FILE
"
.
"
$EXTENSION
"
)
"
BASE
=
"
$(
echo
"
$FILE
"
|
sed
"
s/\.
${
EXTENSION
}
//
"
)
"
if
[
"
$BASE
"
!
=
"
$FILE
"
]
;
then
DEST
=
"
$BASE
"
.
$NEWEXTENSION
return
0
Write
Preview
Loading…
Cancel
Save