Commits

Jack Frost committed 59d14a0

oops

  • Participants
  • Parent commits e5070be

Comments (0)

Files changed (1)

 
 aur.update_local_db() {
 	lf.msg "Updating ABS...\n"
-	sudo abs >/dev/null || { lf.msg 'Fail!'; return 1; }
+	sudo abs >/dev/null || { lf.msg 'Fail!\n'; return 1; }
 
 	sudo pacman -Sy || { return 1; }
 }
 
 	[[ "$flag_aur_only" ]] || { sudo pacman -Su; }
 
-	lf.msg "Updating packages from AUR..."
+	lf.msg "Updating packages from AUR...\n"
 
 	[[ "$old_pkgs" ]] || {
-		lf.msg "Everything seems to be up to date."
+		lf.msg "Everything seems to be up to date.\n"
 		return 0
 	}
 
-	lf.msg "Packages that need updates: ${old_pkgs[*]}"
+	lf.msg "Packages that need updates: ${old_pkgs[*]}\n"
 	read -n1 -p "Proceed? [Y/n] " answer
 	[[ "$answer" == 'y' ]] || [[ "$answer" ]] && {
 		echo
-		lf.msg 'Ok.'
+		lf.msg 'Ok.\n'
 		return 1
 	}
 
 	done
 
 	[[ "$failed_pkgs" ]] && {
-		lf.msg "Failed to upgrade the following pacages: ${failed_pkgs[*]}"
+		lf.msg "Failed to upgrade the following pacages: ${failed_pkgs[*]}\n"
 		return 1
 	}
 
 
 	for i in "${depends[@]}"; do
 		package-query --aur-url "$cfg_aur_url" -A "$i" && {
-			lf.msg "$package depends on $i, installing it"
+			lf.msg "$package depends on $i, installing it\n"
 			"$BASH" "$0" -aNS --asdeps "$i"
 		}
 	done
 	for i in "$cfg_work_dir"; do
 		[[ -e "$i" ]] || {
 			mkdir -p "$i" || {
-				lf.msg "Cannot create $i!"
+				lf.msg "Cannot create $i!\n"
 				return 1
 			}
 		}