mirror of https://github.com/captn3m0/Scripts.git
Remove dead code from cbz.sh
This commit is contained in:
parent
941e30a33d
commit
e44a3506f1
13
cbz.sh
13
cbz.sh
|
@ -20,15 +20,9 @@ do
|
|||
echo "-k keep originals"
|
||||
exit 0
|
||||
;;
|
||||
# "o")
|
||||
# open_flag="true"
|
||||
# ;;
|
||||
esac
|
||||
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"
|
||||
|
||||
for target in "$@"
|
||||
|
@ -38,15 +32,8 @@ do
|
|||
if [[ -d $target ]]
|
||||
then
|
||||
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"
|
||||
|
||||
# if [[ $open_flag == "true" ]]
|
||||
# then
|
||||
# echo "Opening $target.cbz"
|
||||
# open "$target.cbz"
|
||||
# fi
|
||||
|
||||
else
|
||||
echo "\"$target\" is not a directory or not readable. Skipping."
|
||||
fi #-d
|
||||
|
|
Loading…
Reference in New Issue