mirror of
https://github.com/vinceliuice/Colloid-icon-theme.git
synced 2025-09-16 07:58:38 -07:00
Update install.sh
This commit is contained in:
12
install.sh
12
install.sh
@@ -24,7 +24,7 @@ cat << EOF
|
|||||||
OPTIONS:
|
OPTIONS:
|
||||||
-d, --dest DIR Specify destination directory (Default: $DEST_DIR)
|
-d, --dest DIR Specify destination directory (Default: $DEST_DIR)
|
||||||
-n, --name NAME Specify theme name (Default: $THEME_NAME)
|
-n, --name NAME Specify theme name (Default: $THEME_NAME)
|
||||||
-s, --scheme TYPES Specify folder color scheme variant(s) [default|nord]
|
-s, --scheme TYPES Specify folder color scheme variant(s) [default|nord|dracula]
|
||||||
-t, --theme VARIANTS Specify folder color theme variant(s) [default|purple|pink|red|orange|yellow|green|teal|grey|all] (Default: blue)
|
-t, --theme VARIANTS Specify folder color theme variant(s) [default|purple|pink|red|orange|yellow|green|teal|grey|all] (Default: blue)
|
||||||
-h, --help Show help
|
-h, --help Show help
|
||||||
EOF
|
EOF
|
||||||
@@ -37,7 +37,7 @@ install() {
|
|||||||
local scheme=${4}
|
local scheme=${4}
|
||||||
local color=${5}
|
local color=${5}
|
||||||
|
|
||||||
local THEME_DIR=${dest}/${name}${theme}${scheme}${color}
|
local THEME_DIR=${1}/${2}${3}${4}${5}
|
||||||
|
|
||||||
[[ -d ${THEME_DIR} ]] && rm -rf ${THEME_DIR}
|
[[ -d ${THEME_DIR} ]] && rm -rf ${THEME_DIR}
|
||||||
|
|
||||||
@@ -45,13 +45,11 @@ install() {
|
|||||||
|
|
||||||
mkdir -p ${THEME_DIR}
|
mkdir -p ${THEME_DIR}
|
||||||
cp -r ${SRC_DIR}/src/index.theme ${THEME_DIR}
|
cp -r ${SRC_DIR}/src/index.theme ${THEME_DIR}
|
||||||
|
sed -i "s/Colloid/${2}${3}${4}${5}/g" ${THEME_DIR}/index.theme
|
||||||
cd ${THEME_DIR}
|
sed -i "s/WhiteSur/WhiteSur${color}/g" ${THEME_DIR}/index.theme
|
||||||
sed -i "s/${name}/${name}${theme}${scheme}${color}/g" index.theme
|
|
||||||
sed -i "s/WhiteSur/WhiteSur${color}/g" index.theme
|
|
||||||
|
|
||||||
if [[ ${color} == '' ]]; then
|
if [[ ${color} == '' ]]; then
|
||||||
cp -r ${SRC_DIR}/src/* ${THEME_DIR}
|
cp -r ${SRC_DIR}/src/{actions,apps,categories,devices,mimetypes,places,status} ${THEME_DIR}
|
||||||
cp -r ${SRC_DIR}/links/* ${THEME_DIR}
|
cp -r ${SRC_DIR}/links/* ${THEME_DIR}
|
||||||
|
|
||||||
if [[ ${theme} != '' ]]; then
|
if [[ ${theme} != '' ]]; then
|
||||||
|
Reference in New Issue
Block a user