1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 21:41:53 +03:00
mobile-nixos/boot/init/main.rb
Samuel Dionne-Riel 68e4c2b7f3 boot/init: Split interpreter from script
This needs the following commits where the init script will now tell the
loader to load init.mrb
2020-02-28 23:14:09 -05:00

13 lines
197 B
Ruby

$:.unshift(Dir.pwd)
unless ARGV.length == 0
load ARGV.shift
else
$stderr.puts <<EOF
mruby script loader.
Usage: #{$PROGRAM_NAME} <file>
The file argument will be shifted from `ARGV`.
EOF
end