From 1311c7e6a264b7663e7d032f110179b9e024ede4 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Mon, 24 Jul 2023 21:46:25 +0800 Subject: [PATCH] Update install.sh --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 469e1f62..c9f8ef1c 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ ${UID} -eq 0 ]; then +if [[ ${UID} -eq 0 ]]; then DEST_DIR="/usr/share/icons" else DEST_DIR="${HOME}/.local/share/icons" @@ -57,7 +57,7 @@ install_theme() { if [[ -z "${brightprefix}" ]]; then cp -r "${SRC_DIR}"/src/{16,22,24,32,scalable,symbolic} "${THEME_DIR}" cp -r "${SRC_DIR}"/links/{16,22,24,32,scalable,symbolic} "${THEME_DIR}" - if [ -n "${colorprefix}" ]; then + if [[ -n "${colorprefix}" ]]; then install -m644 "${SRC_DIR}"/src/colors/color${colorprefix}/*.svg "${THEME_DIR}/scalable/places" fi else @@ -105,7 +105,7 @@ clean_old_theme() { rm -rf "${DEST_DIR}"/Vimix{'-Amethyst','-Beryl','-Doder','-Ruby','-Jade','-Black','-White'}{'','-dark'} } -while [ $# -gt 0 ]; do +while [[ $# -gt 0 ]]; do if [[ "$1" = "-a" ]]; then colors=("${COLOR_VARIANTS[@]}") elif [[ "$1" = "-d" ]]; then