mount: Put the source argument first
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
73fbc37841
commit
1461fffba8
@ -11,8 +11,8 @@ Result<int> luna_main(int argc, char** argv)
|
|||||||
os::ArgumentParser parser;
|
os::ArgumentParser parser;
|
||||||
parser.add_description("Mount a file system.");
|
parser.add_description("Mount a file system.");
|
||||||
parser.add_system_program_info("mount"_sv);
|
parser.add_system_program_info("mount"_sv);
|
||||||
parser.add_positional_argument(target, "mountpoint"_sv, true);
|
|
||||||
parser.add_positional_argument(source, "source"_sv, true);
|
parser.add_positional_argument(source, "source"_sv, true);
|
||||||
|
parser.add_positional_argument(target, "mountpoint"_sv, true);
|
||||||
parser.add_value_argument(fstype, 't', "type"_sv, "the file system type to use");
|
parser.add_value_argument(fstype, 't', "type"_sv, "the file system type to use");
|
||||||
parser.parse(argc, argv);
|
parser.parse(argc, argv);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
mkdir -p /tmp
|
mkdir -p /tmp
|
||||||
mount -t tmpfs /tmp tmpfs
|
mount -t tmpfs tmpfs /tmp
|
||||||
chmod 1777 /tmp
|
chmod 1777 /tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user