AK2: make backup only backup when needing backup
This commit is contained in:
1 parent
b6d48eed5e
commit
7d9d56d453
1 file changed
+1
-1
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user