joplin-html-fix (271B)
1 #!/usr/bin/env bash 2 read -rp "Execute cleanup in $(pwd)?" -n 1 -s conf 3 case "$conf" in 4 Y|y) 5 ;; 6 *) 7 echo "OK nothing happens" 8 exit 1 9 ;; 10 esac 11 12 set -x 13 sed -i 's:\.\./_resources:\./_resources:g' *.html 14 mv * ../ 15 cd .. 16 find . -type d -empty -depth -delete 17