Difference between revisions of "Knoppix Remastering Howto Brazilian Portuguese"
From Knoppix Documentation Wiki
(→Helpful Scripts) |
(→Scripts Úteis) |
||
| Line 474: | Line 474: | ||
# if not root, re-invoke self as root | # if not root, re-invoke self as root | ||
| − | if [[ "`id -u`" -ne 0 ]]; then | + | if <nowiki>[[</nowiki> "`id -u`" -ne 0 <nowiki>]]</nowiki>; then |
export LOCUSER="$USER" | export LOCUSER="$USER" | ||
export LOCHOME="$HOME" | export LOCHOME="$HOME" | ||
| − | if [[ "${SHELLOPTS/xtrace/}" != "$SHELLOPTS" ]]; then | + | if <nowiki>[[</nowiki> "${SHELLOPTS/xtrace/}" != "$SHELLOPTS" <nowiki>]]</nowiki>; then |
sudo bash -x $0 $@ | sudo bash -x $0 $@ | ||
exit $? | exit $? | ||
| Line 505: | Line 505: | ||
fi | fi | ||
| − | if ! [[ -e "$BOOTIMGFILE" ]]; then | + | if ! <nowiki>[[</nowiki> -e "$BOOTIMGFILE" <nowiki>]]</nowiki>; then |
echo >&2 "ERR: no $BOOTIMGFILE found" | echo >&2 "ERR: no $BOOTIMGFILE found" | ||
exit 1 | exit 1 | ||
| Line 511: | Line 511: | ||
for nofile in $BOOTIMGDIR $INITRDGZ $INITRDFILE $INITRDDIR; do | for nofile in $BOOTIMGDIR $INITRDGZ $INITRDFILE $INITRDDIR; do | ||
| − | if [[ -e "$nofile" ]]; then | + | if <nowiki>[[</nowiki> -e "$nofile" <nowiki>]]</nowiki>; then |
echo >&2 "ERR: $nofile already exists" | echo >&2 "ERR: $nofile already exists" | ||
exit 1 | exit 1 | ||