mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-26 06:46:30 +00:00
Removed old-style globals as suggested in #78
This commit is contained in:
parent
b07c8ae67c
commit
f7c1c05ad4
12
src/tomb
12
src/tomb
@ -33,9 +33,6 @@ STEGHIDE=1
|
||||
MKTEMP=1
|
||||
MOUNTOPTS="rw,noatime,nodev"
|
||||
|
||||
#declare global variables
|
||||
QUIET=0
|
||||
DEBUG=0
|
||||
typeset -A global_opts
|
||||
typeset -A opts
|
||||
|
||||
@ -1662,15 +1659,6 @@ main() {
|
||||
autoload colors; colors
|
||||
fi
|
||||
|
||||
### Set global options (useless, but for code retro-compatibility)
|
||||
for opt in ${(k)global_opts}; do
|
||||
if [[ $opt == '-q' ]]; then
|
||||
QUIET=1
|
||||
elif [[ $opt == '-D' ]]; then
|
||||
DEBUG=1
|
||||
fi
|
||||
done
|
||||
|
||||
CMD=$subcommand
|
||||
CMD2=$PARAM[1]
|
||||
CMD3=$PARAM[2]
|
||||
|
Loading…
Reference in New Issue
Block a user