wok diff bash/receipt @ rev 19159
/etc/init.d/*: use 'action' in pair with 'status'.
'action' returns translated message, so why not to add full translatable /etc/init.d/* content
'action' returns translated message, so why not to add full translatable /etc/init.d/* content
| author | Aleksej Bobylev <al.bobylev@gmail.com> |
|---|---|
| date | Thu May 26 20:16:45 2016 +0300 (2016-05-26) |
| parents | 6492649051cf |
| children | 5d404602443f |
line diff
1.1 --- a/bash/receipt Thu Oct 08 04:06:36 2015 +0300 1.2 +++ b/bash/receipt Thu May 26 20:16:45 2016 +0300 1.3 @@ -93,7 +93,7 @@ 1.4 mkdir -p "$1/etc/skel"; cp -a "$1/etc/bashrc" "$1/etc/skel/.bashrc" 1.5 1.6 # Exit function in non-interactive mode (when user can't answer question) 1.7 - tty -s || return 1.8 + ! tty -s && return 1.9 1.10 echo -n 'Do you want to set Bash to default (y/N) ? : ' 1.11 read -t 30 answer