浏览代码

[F] Specify /usr/bin/env bash to prevent ld signature check on iOS

Hykilpikonna 2 年之前
父节点
当前提交
b6f0a80bb1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hyfetch/neofetch_util.py

+ 1 - 1
hyfetch/neofetch_util.py

@@ -206,7 +206,7 @@ def run_command(args: str, pipe: bool = False) -> str | None:
     Run neofetch command
     Run neofetch command
     """
     """
     if platform.system() != 'Windows':
     if platform.system() != 'Windows':
-        full_cmd = shlex.split(f'{get_command_path()} {args}')
+        full_cmd = shlex.split(f'/usr/bin/env bash {get_command_path()} {args}')
 
 
     else:
     else:
         cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/")
         cmd = get_command_path().replace("\\", "/").replace("C:/", "/c/")