Commit c2b2656a authored by Administrator's avatar Administrator 💬

Review install shell script.

parent 3592f270
......@@ -3,11 +3,13 @@
COURSES_DIR="user/pages"
BACKUP="${COURSES_DIR}.$(date +%F_%R)"
# make sure we're at project root
# Make sure we're at project root
cd "$(dirname "$(realpath "$0")")";
cd ..
echo -e "Creating backup of pages in ${BACKUP}"
echo -e "Creating a backup of pages in ${BACKUP}…"
mv ${COURSES_DIR} ${BACKUP}
......@@ -16,4 +18,5 @@ git submodule update --init --recursive
git submodule foreach git checkout master
git submodule foreach git pull origin master
echo -e "Done!"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment