Parse flag-like inputs as literal names
This commit is contained in:
parent
4cfa7ed76b
commit
36d1221256
1 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ make_editable_copy() {
|
|||
orig_file="$1"
|
||||
tempfile="$2"
|
||||
|
||||
try_command cp "${orig_file}" "${tempfile}"
|
||||
try_command cp -- "${orig_file}" "${tempfile}"
|
||||
}
|
||||
|
||||
elevate_permissions() {
|
||||
|
|
@ -45,13 +45,13 @@ update_file() {
|
|||
tempfile="$1"
|
||||
orig_file="$2"
|
||||
|
||||
try_command mv --force "${tempfile}" "${orig_file}"
|
||||
try_command mv --force -- "${tempfile}" "${orig_file}"
|
||||
}
|
||||
|
||||
clean_tempfiles() {
|
||||
tempfile="$1"
|
||||
|
||||
rm --force "${tempfile}" "${tempfile}.orig"
|
||||
rm --force -- "${tempfile}" "${tempfile}.orig"
|
||||
}
|
||||
|
||||
if [ "$#" -ne "1" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue