Minor order of operations changes and var name consistency (lower-case)

This commit is contained in:
Sam Hardeman 2025-09-23 02:20:12 +02:00
parent 03303c9e36
commit 434a50987e
9 changed files with 236 additions and 208 deletions

4
editx
View file

@ -22,9 +22,9 @@ touch "$1"
chmod +x "$1"
$EDITOR "$1"
wait $!
SIZE=$(du "$1" | cut -f 1)
size=$(du "$1" | cut -f 1)
if [[ $SIZE -eq 0 && $exists -ne 0 ]];
if [[ $size -eq 0 && $exists -ne 0 ]];
then
rm -rf "$1"
fi