Skip to content

Commit 4d325d4

Browse files
authored
Update commafeed.sh
1 parent 67541a9 commit 4d325d4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ct/commafeed.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ function update_script() {
3333
systemctl stop commafeed
3434
msg_ok "Stopped ${APP}"
3535

36-
msg_info "Installing Dependencies"
37-
$STD apt-get install -y rsync
38-
msg_ok "Installed Dependencies"
36+
if ! [[ $(dpkg -s rsync 2>/dev/null) ]]; then
37+
msg_info "Installing Dependencies"
38+
$STD apt-get update
39+
$STD apt-get install -y rsync
40+
msg_ok "Installed Dependencies"
41+
fi
3942

4043
msg_info "Updating ${APP} to ${RELEASE}"
4144
curl -fsSL "https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip" -o $(basename "https://github.com/Athou/commafeed/releases/download/${RELEASE}/commafeed-${RELEASE}-h2-jvm.zip")

0 commit comments

Comments
 (0)