File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ function update_script() {
4141 msg_info " Updating ${APP} to ${RELEASE} "
4242 cp /opt/zipline/.env /opt/
4343 mkdir -p /opt/zipline-upload
44- cp -R /opt/zipline/upload/* /opt/zipline-upload/
44+ if [ -d /opt/zipline/upload ] && [ " $( ls -A /opt/zipline/upload) " ]; then
45+ cp -R /opt/zipline/upload/* /opt/zipline-upload/
46+ fi
4547 curl -fsSL " https://github.com/diced/zipline/archive/refs/tags/v${RELEASE} .zip" -o $( basename " https://github.com/diced/zipline/archive/refs/tags/v${RELEASE} .zip" )
4648 $STD unzip v" ${RELEASE} " .zip
4749 rm -R /opt/zipline
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ msg_ok "Created Service"
7878motd_ssh
7979customize
8080msg_info " Cleaning up"
81+ rm -f /opt/v${RELEASE} .zip
8182$STD apt-get -y autoremove
8283$STD apt-get -y autoclean
8384msg_ok " Cleaned"
You can’t perform that action at this time.
0 commit comments