Minor order of operations changes and var name consistency (lower-case)
This commit is contained in:
parent
03303c9e36
commit
434a50987e
9 changed files with 236 additions and 208 deletions
4
editx
4
editx
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue