Don't overwrite gophermap if it already exists
This commit is contained in:
parent
07303cf5e3
commit
fa6d90a59c
2
bb.sh
2
bb.sh
|
@ -860,6 +860,7 @@ make_gophermap() {
|
||||||
ln -s "${HOME}/public_html/blog/" "${HOME}/public_gopher/blog"
|
ln -s "${HOME}/public_html/blog/" "${HOME}/public_gopher/blog"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "${HOME}/public_gopher/blog/gophermap" ]; then
|
||||||
cat <<- 'EOF' > $HOME/public_html/blog/gophermap
|
cat <<- 'EOF' > $HOME/public_html/blog/gophermap
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo -e "my bashblog posts\n"
|
echo -e "my bashblog posts\n"
|
||||||
|
@ -870,6 +871,7 @@ make_gophermap() {
|
||||||
done
|
done
|
||||||
EOF
|
EOF
|
||||||
chmod +x $HOME/public_html/blog/gophermap
|
chmod +x $HOME/public_html/blog/gophermap
|
||||||
|
fi
|
||||||
chmod 644 *.md
|
chmod 644 *.md
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue