From af347c962314c6265a0bfabf61df8a7b5c289f8f Mon Sep 17 00:00:00 2001 From: Bin Yong Date: Wed, 5 Jun 2024 19:24:02 +0000 Subject: [PATCH] Update chromium.sh --- chromium.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chromium.sh b/chromium.sh index 668768a..d45f30b 100755 --- a/chromium.sh +++ b/chromium.sh @@ -14,8 +14,9 @@ elif which chromium-browser; then fi extra_options= -if [ $executable_path = "/bin" ] || [ $executable_path = "/usr/bin" ] || [ $executable_path = "/usr/local/bin" ]; then +if [ $executable_path = "/bin" ] || [ $executable_path = "/usr/bin" ] || [ $executable_path = "/usr/local/bin"]; then executable_path=`find /usr -name "chrom*.pak" 2>/dev/null|grep -e "chrom.*chrom" -m 1 |xargs dirname` + executable=`find $executable_path -maxdepth 1 -type f -regex ".*\chrom[^_-]*[^r]"|sed -E "s|.*/||"` fi if [ "$1" = "yongbin" ]; then