From e5db6ef4c7ef43b81a2eede3c05d9b7b10e3bc17 Mon Sep 17 00:00:00 2001 From: Eduard Toloza Date: Fri, 15 Mar 2019 20:12:23 -0500 Subject: [PATCH] Fix function --- simpleaur | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simpleaur b/simpleaur index 5029d49..03602df 100755 --- a/simpleaur +++ b/simpleaur @@ -47,7 +47,7 @@ function usage(){ function ctrl_c() { printf "\n${RED}Keyboard Interrupt detected, removing lock file and leaving...\n" - rm "$lockfile" + rm -f "$lockfile" printf "${ALL_OFF}" exit } @@ -117,7 +117,7 @@ if ! command -v pacman > /dev/null; then exit fi -logfilecheck +lockfilecheck # Check if the package was already downloaded and then download the PKGBUILDs accordly to user needs. for ipackage in "$@"; do if [ -f "$basebuilddir/$ipackage/PKGBUILD" ]; then