From df42e43a4912975d4c8d544d34b43ec0ced57957 Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 1 Apr 2016 13:19:52 +0300 Subject: [PATCH] just create the dir --- prm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/prm b/prm index 703dbac..d5d4a5d 100755 --- a/prm +++ b/prm @@ -284,6 +284,13 @@ main() { return 1 } + [[ -d "$cfg_workdir" ]] || { + mkdir -p "$cfg_workdir" || { + err "Can't create workdir: %s\n" "$cfg_workdir" + return 1 + } + } + case "$action" in (get) [[ "$package" ]] || { @@ -291,13 +298,6 @@ main() { return 1 } - [[ -d "$cfg_workdir" ]] || { - mkdir -p "$cfg_workdir" || { - err "Can't create workdir: %s\n" "$cfg_workdir" - return 1 - } - } - pkg_aur_info=$( aur.info "$package" ) if (( ! "$?" )); then