From baca1dfbcf260b81cd16d465f310791748e01b99 Mon Sep 17 00:00:00 2001 From: samwhelp Date: Tue, 28 Mar 2023 22:41:15 +0800 Subject: [PATCH] fix install.sh dest path and exit status --- README.md | 2 +- install.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ef202714..902d2101 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Usage: `./install.sh` **[OPTIONS...]** | OPTIONS: | | |:--------------------|:-------------| -|-d, --dest | Specify theme destination directory (Default: $HOME/.themes)| +|-d, --dest | Specify theme destination directory (Default: $HOME/.local/share/icons)| |-n, --name | Specify theme name (Default: WhiteSur)| |-t, --theme | Specify theme color variant(s) [default/purple/pink/red/orange/yellow/green/grey/all] (Default: blue)| |-a, --alternative | Install alternative icons (redesigned MacOS default icons)| diff --git a/install.sh b/install.sh index bfd3fef6..55de2013 100755 --- a/install.sh +++ b/install.sh @@ -56,8 +56,8 @@ install() { cp -r "${SRC_DIR}"/{COPYING,AUTHORS} ${THEME_DIR} cp -r "${SRC_DIR}"/src/index.theme ${THEME_DIR} - cd ${THEME_DIR} - sed -i "s/${name}/${name}${theme}${color}/g" index.theme + #cd ${THEME_DIR} + sed -i "s/${name}/${name}${theme}${color}/g" ${THEME_DIR}/index.theme if [[ ${color} == '' ]]; then mkdir -p ${THEME_DIR}/status @@ -292,4 +292,4 @@ else install_theme fi -exit 1 +#exit 0