mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 21:41:53 +03:00
68e4c2b7f3
This needs the following commits where the init script will now tell the loader to load init.mrb
13 lines
197 B
Ruby
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
|