From ea111cb6cc7fed09fc520aeca3a43fe194387688 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Mon, 31 May 2021 23:03:39 -0400 Subject: [PATCH] fix rm of nothing --- cedit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.30.2