mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 05:25:58 +01:00
shell: don't use fgrep, prefer grep -F
This commit is contained in:
parent
a77ffa8cb8
commit
7976bfa2df
3 changed files with 3 additions and 3 deletions
|
@ -159,7 +159,7 @@ void CrashReporter::createAndSaveCrash(int sig) {
|
||||||
|
|
||||||
finalCrashReport += "GPU:\n\t";
|
finalCrashReport += "GPU:\n\t";
|
||||||
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
||||||
finalCrashReport.writeCmdOutput("pciconf -lv | fgrep -A4 vga");
|
finalCrashReport.writeCmdOutput("pciconf -lv | grep -F -A4 vga");
|
||||||
#else
|
#else
|
||||||
finalCrashReport.writeCmdOutput("lspci -vnn | grep VGA");
|
finalCrashReport.writeCmdOutput("lspci -vnn | grep VGA");
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -942,7 +942,7 @@ std::string systemInfoRequest(eHyprCtlOutputFormat format, std::string request)
|
||||||
result += "\n\n";
|
result += "\n\n";
|
||||||
|
|
||||||
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
||||||
const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga");
|
const std::string GPUINFO = execAndGet("pciconf -lv | grep -F -A4 vga");
|
||||||
#elif defined(__arm__) || defined(__aarch64__)
|
#elif defined(__arm__) || defined(__aarch64__)
|
||||||
const std::string GPUINFO = execAndGet("cat /proc/device-tree/soc*/gpu*/compatible");
|
const std::string GPUINFO = execAndGet("cat /proc/device-tree/soc*/gpu*/compatible");
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -610,7 +610,7 @@ void logSystemInfo() {
|
||||||
Debug::log(NONE, "\n");
|
Debug::log(NONE, "\n");
|
||||||
|
|
||||||
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
||||||
const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga");
|
const std::string GPUINFO = execAndGet("pciconf -lv | grep -F -A4 vga");
|
||||||
#elif defined(__arm__) || defined(__aarch64__)
|
#elif defined(__arm__) || defined(__aarch64__)
|
||||||
const std::string GPUINFO = execAndGet("cat /proc/device-tree/soc*/gpu*/compatible");
|
const std::string GPUINFO = execAndGet("cat /proc/device-tree/soc*/gpu*/compatible");
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue