mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Making things more homogeneous in checks, some space removed.
This commit is contained in:
parent
0a63179529
commit
5f572c75d0
12
lrztar
12
lrztar
|
|
@ -78,7 +78,7 @@ Notice:
|
|||
i="${i%.tar.*}"
|
||||
if ((v_O)); then
|
||||
for x in ${!p[@]};do
|
||||
[ "${p[x]}"x == "-O"x ] && {
|
||||
[[ ${p[x]} == "-O" ]] && {
|
||||
p[x]=
|
||||
p[$((x+1))]=
|
||||
break;
|
||||
|
|
@ -86,16 +86,14 @@ Notice:
|
|||
done
|
||||
i="${vopt[v_O]%/}"
|
||||
x="${s##*/}"
|
||||
if [[ $(shopt -s nullglob;
|
||||
shopt -s dotglob;
|
||||
echo "$i"/"${x%.tar.*}"/*) ]] && ! ((v_f)); then
|
||||
printf "lrztar: %s exists, not empty, use -f.\n" \
|
||||
"$i"/"${x%.tar.*}"
|
||||
if [[ -d "$i/${x%.tar.*}" ]] && ! ((v_f)); then
|
||||
printf "lrztar: %s exists, use -f.\n" \
|
||||
"$i/${x%.tar.*}"
|
||||
return 1
|
||||
fi
|
||||
if ! [[ -d $i ]]; then
|
||||
printf "lrztar: %s output path does not exist.\n" \
|
||||
"$i"
|
||||
"$i"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue