diff --git a/linupx-scripts.sh b/linupx-scripts.sh index c47016e..85eb9ef 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -180,8 +180,8 @@ DOCKER_UPDATE(){ } SYNCTHING_APT_UPDATE(){ - if [ -f /etc/apt/sources.list.d/*syncthing* ] && [ ! -f /etc/apt/keyrings/syncthing-archive-keyring.gpg ]; then - rm -f /etc/apt/sources.list.d/*syncthing* + if [ -f "/etc/apt/sources.list.d/*syncthing*" ] && [ ! -f /etc/apt/keyrings/syncthing-archive-keyring.gpg ]; then + rm -f "/etc/apt/sources.list.d/*syncthing*" mkdir -p /etc/apt/keyrings curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list