From: Ian Kelling Date: Tue, 1 Jun 2021 03:03:39 +0000 (-0400) Subject: fix rm of nothing X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=ea111cb6cc7fed09fc520aeca3a43fe194387688;p=cedit fix rm of nothing --- diff --git a/cedit b/cedit index dfee11d..9b21969 100755 --- a/cedit +++ b/cedit @@ -130,8 +130,8 @@ section. cedit is short for config edit. echo "$diff" fi fi - if ! $backup; then - rm -r $"$temp" + if ! $backup && $exists; then + rm -r "$temp" fi return $ret }