Fix 2 bugs. Deleting file without yaml file and multi-word delete
The first bug output an error if trying to stage the deletion of the yaml file if the file never existed. The error is now piped to /dev/null and `|| true` is appended to the line which causes the script to carry on execution The second change is when deleting a file, you no longer have to quote the file name if it is a multi word file. This puts it in line with the new command
This commit is contained in:
parent
9a269628c4
commit
05e5cac976
2 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ deleteFile(){
|
|||
local filename
|
||||
local fileID
|
||||
local rsp
|
||||
filename="$(findFile "$1")"
|
||||
filename="$(findFile "$*")"
|
||||
fileID="$(findFileId "$filename")"
|
||||
[ ! -e "$filename" ] && exit 1
|
||||
echo -n "Are you sure? [yN] "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue