1
0
mirror of https://github.com/danog/learn-bash.git synced 2024-11-30 04:19:06 +01:00

Update learn.sh

This commit is contained in:
Daniil Gentili 2015-05-30 18:31:11 +02:00
parent 3054d79599
commit ec8098a963

View File

@ -8,6 +8,7 @@
# First checks. # First checks.
[ -f /bin/bash ] && bash="/bin/bash" || bash="$(which -a bash | tail -1)" [ -f /bin/bash ] && bash="/bin/bash" || bash="$(which -a bash | tail -1)"
which wget &>/dev/null which wget &>/dev/null
if [ "$?" = 0 ];then dl() { if [ "$?" = 0 ];then dl() {
wget $1 -O $2 $3 wget $1 -O $2 $3
@ -29,7 +30,7 @@ read -s -p "Press enter to continue: "; echo -en "\r\033[K"
} }
r() { r() {
eval "$FUNCNAME"_lesson eval "$current"_lesson
} }
s() { s() {
@ -211,6 +212,7 @@ press
} }
learn_2() { learn_2() {
current="$FUNCNAME"
set +H set +H
learn_2_lesson learn_2_lesson