mirror of
https://github.com/vinceliuice/WhiteSur-icon-theme.git
synced 2024-11-25 15:20:09 +00:00
Merge pull request #231 from samwhelp/master
fix install.sh dest path and exit status
This commit is contained in:
commit
1e0f5afd1a
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ Usage: `./install.sh` **[OPTIONS...]**
|
||||||
|
|
||||||
| 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)|
|
|-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)|
|
|-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)|
|
|-a, --alternative | Install alternative icons (redesigned MacOS default icons)|
|
||||||
|
|
|
@ -56,8 +56,8 @@ install() {
|
||||||
cp -r "${SRC_DIR}"/{COPYING,AUTHORS} ${THEME_DIR}
|
cp -r "${SRC_DIR}"/{COPYING,AUTHORS} ${THEME_DIR}
|
||||||
cp -r "${SRC_DIR}"/src/index.theme ${THEME_DIR}
|
cp -r "${SRC_DIR}"/src/index.theme ${THEME_DIR}
|
||||||
|
|
||||||
cd ${THEME_DIR}
|
#cd ${THEME_DIR}
|
||||||
sed -i "s/${name}/${name}${theme}${color}/g" index.theme
|
sed -i "s/${name}/${name}${theme}${color}/g" ${THEME_DIR}/index.theme
|
||||||
|
|
||||||
if [[ ${color} == '' ]]; then
|
if [[ ${color} == '' ]]; then
|
||||||
mkdir -p ${THEME_DIR}/status
|
mkdir -p ${THEME_DIR}/status
|
||||||
|
@ -292,4 +292,4 @@ else
|
||||||
install_theme
|
install_theme
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 1
|
#exit 0
|
||||||
|
|
Loading…
Reference in a new issue