File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- set -eu
2+ set -euo pipefail
33
44SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
55REPO_DIR=" $( dirname " ${SCRIPT_DIR} " ) "
@@ -15,7 +15,5 @@ python3 "${REPO_DIR}/maintenance.py" --bleachbit-only
1515sync
1616echo 3 | sudo tee /proc/sys/vm/drop_caches
1717
18- # TODO: Add BleachBit here
19-
2018# TRIM free disk space
2119fstrim -a -v
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ replacerec() {
102102 # https://superuser.com/questions/422459/substitution-in-text-file-without-regular-expressions
103103 # https://stackoverflow.com/questions/1583219/how-to-do-a-recursive-find-replace-of-a-string-with-awk-or-sed
104104 if [ $# -ne 3 ]; then
105- echo " replacerec: Find and replace text recursicely . Unlike 'sed' it does not try to match special symbols with regex."
105+ echo " replacerec: Find and replace text recursively . Unlike 'sed' it does not try to match special symbols with regex."
106106 echo " Usage: replacerec <old-text> <new-text> <filter>"
107107 echo " Example: replacerec '(^_^)' ':D' '*.txt'"
108108 else
You can’t perform that action at this time.
0 commit comments