nix-prefetch-git: fix bash evaluation order dependency

This commit is contained in:
Benno Fünfstück 2016-06-15 22:54:35 +02:00
parent a689df205a
commit 9ff91371d0

View File

@ -68,7 +68,7 @@ for arg; do
--builder) builder=true;; --builder) builder=true;;
--help) usage; exit;; --help) usage; exit;;
*) *)
argi=$((argi++)) : $((++argi))
case $argi in case $argi in
1) url=$arg;; 1) url=$arg;;
2) rev=$arg;; 2) rev=$arg;;