Add or detectOs(Manjaro) (#12587) [backport]

Using `pacman` command in Manjaro Linux

(cherry picked from commit 1ff3494dab)
This commit is contained in:
jiro
2019-11-04 20:20:23 +09:00
committed by narimiran
parent 3ba3307d61
commit 0694bd47b9

View File

@@ -227,7 +227,7 @@ proc foreignDepInstallCmd*(foreignPackageName: string): (string, bool) =
result = ("pkg install " & p, true)
elif detectOs(PCLinuxOS):
result = ("rpm -ivh " & p, true)
elif detectOs(ArchLinux):
elif detectOs(ArchLinux) or detectOs(Manjaro):
result = ("pacman -S " & p, true)
else:
result = ("<your package manager here> install " & p, true)