Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
f0974523
Commit
f0974523
authored
Mar 19, 2012
by
Tails developers
Browse files
Use local variables in functions.
parent
b7f390e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/usr/local/sbin/unsafe-browser
View file @
f0974523
...
...
@@ -26,20 +26,20 @@ cleanup () {
}
error
()
{
CLI_TEXT
=
"
${
0
}
: error:
${
@
}
"
DIALOG_TEXT
=
"
${
@
}
local
cli_text
=
"
${
0
}
: error:
${
@
}
"
local
dialog_text
=
"
${
@
}
Unsafe Browser will exit now."
echo
"
${
CLI_TEXT
}
"
>
&2
zenity
--error
--title
""
--text
"
${
DIALOG_TEXT
}
"
echo
"
${
cli_text
}
"
>
&2
zenity
--error
--title
""
--text
"
${
dialog_text
}
"
cleanup
exit
1
}
warning
()
{
TEXT
=
"
${
@
}
"
echo
"
${
0
}
: warning:
${
TEXT
}
"
>
&2
zenity
--warning
--title
""
--text
"
${
TEXT
}
"
local
text
=
"
${
@
}
"
echo
"
${
0
}
: warning:
${
text
}
"
>
&2
zenity
--warning
--title
""
--text
"
${
text
}
"
}
# First make sure the user really wants this
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment