Skip to content

Commit 043baf2

Browse files
authored
fix: update function now backs up index and config (#2845)
1 parent cf2f7a9 commit 043baf2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ct/revealjs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ function update_script() {
3939
wget -q "https://github.com/hakimel/reveal.js/archive/refs/tags/${RELEASE}.tar.gz" -O $temp_file
4040
tar zxf $temp_file
4141
rm -rf /opt/revealjs/node_modules/*
42+
cp /opt/revealjs/index.html /opt
43+
cp /opt/revealjs/gulpfile.js /opt
4244
cp -rf reveal.js-${RELEASE}/* /opt/revealjs
4345
cd /opt/revealjs
4446
$STD npm install
45-
sed -i '25s/localhost/0.0.0.0/g' /opt/revealjs/gulpfile.js
47+
cp -f /opt/index.html /opt/revealjs
48+
cp -f /opt/gulpfile.js /opt/revealjs
4649
echo "${RELEASE}" >/opt/${APP}_version.txt
4750
msg_ok "Updated $APP to ${RELEASE}"
4851

0 commit comments

Comments
 (0)