1
0
mirror of https://github.com/danog/learn-bash.git synced 2024-11-29 20:09:04 +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.
[ -f /bin/bash ] && bash="/bin/bash" || bash="$(which -a bash | tail -1)"
which wget &>/dev/null
if [ "$?" = 0 ];then dl() {
wget $1 -O $2 $3
@ -29,7 +30,7 @@ read -s -p "Press enter to continue: "; echo -en "\r\033[K"
}
r() {
eval "$FUNCNAME"_lesson
eval "$current"_lesson
}
s() {
@ -211,6 +212,7 @@ press
}
learn_2() {
current="$FUNCNAME"
set +H
learn_2_lesson