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 {
|
||||
DIR="$1"
|
||||
CURRENT="$(readlink -f .)"
|
||||
local DIR="$1"
|
||||
local CURRENT="$(readlink -f .)"
|
||||
if test "$CURRENT" != "$DIR"
|
||||
then
|
||||
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
|
||||
fi
|
||||
|
||||
BRANCH="$1"
|
||||
SCRIPT="$2"
|
||||
local BRANCH="$1"
|
||||
local SCRIPT="$2"
|
||||
|
||||
echo "Debug: I am $0, $SCRIPT as param"
|
||||
|
||||
|
|
Loading…
Reference in a new issue