make/lib: lokální proměnné
This commit is contained in:
parent
1a56ba02f3
commit
d086501095
1 changed files with 4 additions and 4 deletions
|
@ -36,8 +36,8 @@ function gimli_only {
|
||||||
}
|
}
|
||||||
|
|
||||||
function only_in_directory {
|
function only_in_directory {
|
||||||
DIR="$1"
|
local DIR="$1"
|
||||||
CURRENT="$(readlink -f .)"
|
local CURRENT="$(readlink -f .)"
|
||||||
if test "$CURRENT" != "$DIR"
|
if test "$CURRENT" != "$DIR"
|
||||||
then
|
then
|
||||||
echo "Tento příkaz se má spouštět ve složce $DIR, chceš pokračovat? Pokud ne, sestřel tento skript."
|
echo "Tento příkaz se má spouštět ve složce $DIR, chceš pokračovat? Pokud ne, sestřel tento skript."
|
||||||
|
@ -52,8 +52,8 @@ function safe_checkout_branch {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BRANCH="$1"
|
local BRANCH="$1"
|
||||||
SCRIPT="$2"
|
local SCRIPT="$2"
|
||||||
|
|
||||||
echo "Debug: I am $0, $SCRIPT as param"
|
echo "Debug: I am $0, $SCRIPT as param"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue