pmbootstrap log: don't depend on non-POSIX getopt (MR 1988)

Signed-off-by: Newbyte <newbie13xd@gmail.com>
This commit is contained in:
Eyal Sawady 2020-11-09 13:38:27 -05:00 committed by Clayton Craft
parent 173f90d796
commit 741b0f298f
No known key found for this signature in database
GPG Key ID: 23A30DA6D406B355
1 changed files with 2 additions and 2 deletions

View File

@ -451,7 +451,7 @@ def work_migrate(args):
def log(args):
if args.clear_log:
pmb.helpers.run.user(args, ["truncate", "-s", "0", args.log])
pmb.helpers.run.user(args, ["tail", "-F", args.log, "-n", args.lines],
pmb.helpers.run.user(args, ["tail", "-n", args.lines, "-F", args.log],
output="tui")
@ -459,7 +459,7 @@ def log_distccd(args):
logpath = "/home/pmos/distccd.log"
if args.clear_log:
pmb.chroot.user(args, ["truncate", "-s", "0", logpath])
pmb.chroot.user(args, ["tail", "-f", logpath, "-n", args.lines],
pmb.chroot.user(args, ["tail", "-n", args.lines, "-f", logpath],
output="tui")