mirror of https://github.com/captn3m0/Scripts.git
Remove dead code from cbz.sh
This commit is contained in:
parent
941e30a33d
commit
e44a3506f1
15
cbz.sh
15
cbz.sh
|
@ -20,15 +20,9 @@ do
|
||||||
echo "-k keep originals"
|
echo "-k keep originals"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
# "o")
|
|
||||||
# open_flag="true"
|
|
||||||
# ;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
#exec > >( lolcat ) # send stdout to lolcat
|
|
||||||
#exec 2>&1 # merge stderr into stdout
|
|
||||||
|
|
||||||
echo "Running: zip -$remove_flag$recursive_flag$test_flag$compression out.cbz in -x *.DS_Store *[Tt]humbs.db"
|
echo "Running: zip -$remove_flag$recursive_flag$test_flag$compression out.cbz in -x *.DS_Store *[Tt]humbs.db"
|
||||||
|
|
||||||
for target in "$@"
|
for target in "$@"
|
||||||
|
@ -38,15 +32,8 @@ do
|
||||||
if [[ -d $target ]]
|
if [[ -d $target ]]
|
||||||
then
|
then
|
||||||
echo "Archiving \"$target\""
|
echo "Archiving \"$target\""
|
||||||
# -m delete originals, -r recursive, -T test zip, -9 maximum compression, -x exclude list
|
|
||||||
zip -"$remove_flag$recursive_flag$test_flag$compression" "$target.cbz" "$target" -x "*.DS_Store" "*[Tt]humbs.db"
|
zip -"$remove_flag$recursive_flag$test_flag$compression" "$target.cbz" "$target" -x "*.DS_Store" "*[Tt]humbs.db"
|
||||||
|
|
||||||
# if [[ $open_flag == "true" ]]
|
|
||||||
# then
|
|
||||||
# echo "Opening $target.cbz"
|
|
||||||
# open "$target.cbz"
|
|
||||||
# fi
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "\"$target\" is not a directory or not readable. Skipping."
|
echo "\"$target\" is not a directory or not readable. Skipping."
|
||||||
fi #-d
|
fi #-d
|
||||||
|
|
Loading…
Reference in New Issue