Skip to content

Commit 3357f37

Browse files
committed
Fix rainloop update script
1 parent dd56de1 commit 3357f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v-add-sys-rainloop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ else
154154
[ ! -f "${RC_INSTALL_DIR}/${RC_FILE}" ] && wget "$RL_URL" --quiet -O "${RL_INSTALL_DIR}/${RL_FILE}"
155155
version=$(cat $RL_INSTALL_DIR/data/VERSION)
156156

157-
unzip -q -j rainloop-latest.zip "data/VERSION" -d $RL_INSTALL_DIR/
157+
unzip -q -j ${RL_INSTALL_DIR}/${RL_FILE} "data/VERSION" -d $RL_INSTALL_DIR/
158158
version_source=$(cat $RL_INSTALL_DIR/VERSION)
159159

160160
# Check version inside .zip file in case hestia didn't update yet
161161
if [ "$version" != "$version_source" ]; then
162-
unzip -q ${RL_INSTALL_DIR}/${RL_FILE}
162+
unzip -q -o ${RL_INSTALL_DIR}/${RL_FILE} -d $RL_INSTALL_DIR/
163163
rm $RL_INSTALL_DIR/$RL_FILE
164164
fi
165165
rm ${RL_INSTALL_DIR}/VERSION

0 commit comments

Comments
 (0)