From 76e675108d92213e156aa5251d7118ac65ea64f5 Mon Sep 17 00:00:00 2001 From: hl Date: Tue, 19 Nov 2024 20:14:18 +0800 Subject: [PATCH] update --- configure.sh | 2 +- init.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.sh b/configure.sh index 9572c60..739a9e0 100755 --- a/configure.sh +++ b/configure.sh @@ -44,7 +44,7 @@ APT::Install-Suggests "0";" | tee /etc/apt/apt.conf.d/01norecommend >/dev/null mkdir -p $HOME/.config/micro cp "$AWD/assets/settings.json" $HOME/.config/micro/ - if [ $DISTRO_PVE -eq 1 ]; then + if ((DISTRO_PVE)); then sed -i -E "s/.*zoxide.*//g" $HOME/.zshrc elif $1; then $AWD/install-release.sh -r zsh-users/zsh-completions -k tarball -o completions.tar.gz -d "0 src" -p /usr/local/share/zsh/site-functions diff --git a/init.sh b/init.sh index 544a609..0e191d5 100755 --- a/init.sh +++ b/init.sh @@ -71,7 +71,7 @@ Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Architectures: $OS_ARCH " | tee /etc/apt/sources.list.d/debian.sources - if [ $DISTRO_PVE -eq 1 ]; then + if ((DISTRO_PVE)); then echo -e "Types: deb URIs: $PVE_URL Suites: $OS_CODE