From 8aeb90d5ace254e1bf6ef8428ec88a44092fc5dd Mon Sep 17 00:00:00 2001 From: hjmmc Date: Fri, 17 Apr 2020 17:24:12 +0800 Subject: [PATCH] add local mode support --- hidpi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hidpi.sh b/hidpi.sh index 3db6411..f08eeef 100755 --- a/hidpi.sh +++ b/hidpi.sh @@ -76,11 +76,11 @@ downloadHost="https://raw.githubusercontent.com/xzhih/one-key-hidpi/master" # downloadHost="https://raw.githubusercontent.com/xzhih/one-key-hidpi/dev" # downloadHost="http://127.0.0.1:8080" -shellDir="$( cd "$( dirname "$0" )" && pwd )" +shellDir="$(dirname $0)" if [ -d "${shellDir}/displayIcons" ];then echo $langLocalMode - downloadHost="fiel://${shellDir}" + downloadHost="file://${shellDir}" else echo $langRemoteMode fi