munix: run realpath on nixos closure before running
this is more convinent when using `nix build`.
This commit is contained in:
parent
c32be2f8c8
commit
181e675f02
1 changed files with 3 additions and 0 deletions
3
munix
3
munix
|
|
@ -48,6 +48,9 @@ if [ "$MICROVM_CLOSURE" = "" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Resolve symlinks automatically
|
||||||
|
MICROVM_CLOSURE=$(realpath "$MICROVM_CLOSURE")
|
||||||
|
|
||||||
if [ ${#MICROVM_COMMAND[@]} -eq 0 ]; then
|
if [ ${#MICROVM_COMMAND[@]} -eq 0 ]; then
|
||||||
MICROVM_COMMAND=("bash")
|
MICROVM_COMMAND=("bash")
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue