This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" != "" ]; then | |
dr=$(dirname $1) | |
scdr=$(dirname $0) | |
fn=$(basename $1) | |
filename="${fn%%.*}" | |
extension="${fn#*.}" | |
output="${dr}/${filename}_wm.${extension}" | |
# wm.png is my watermark. It's a white logo with 50% opacity and a transparent background. | |
wm="${scdr}/wm.png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://github.com/gohugoio/hugo/releases/latest | grep -Po "(\d+\.)+\d+" | xargs -i wget https://github.com/gohugoio/hugo/releases/download/v{}/hugo_{}_Linux-64bit.deb | |
sudo dpkg -i hugo*.deb /usr/local/bin | |