AK2: make backup only backup when needing backup

This commit is contained in:
osm0sis committed 2017-02-02 18:26:39 -04:00
1 parent b6d48eed5e
commit 7d9d56d453
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ write_boot() {
}
# backup_file <file>
backup_file() { cp $1 $1~; }
backup_file() { test ! -f $1~ && cp $1 $1~; }
# replace_string <file> <if search string> <original string> <replacement string>
replace_string() {