just create the dir

This commit is contained in:
Jack L. Frost 2016-04-01 13:19:52 +03:00
parent 7fedda7342
commit df42e43a49

14
prm
View File

@ -284,6 +284,13 @@ main() {
return 1 return 1
} }
[[ -d "$cfg_workdir" ]] || {
mkdir -p "$cfg_workdir" || {
err "Can't create workdir: %s\n" "$cfg_workdir"
return 1
}
}
case "$action" in case "$action" in
(get) (get)
[[ "$package" ]] || { [[ "$package" ]] || {
@ -291,13 +298,6 @@ main() {
return 1 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" ) pkg_aur_info=$( aur.info "$package" )
if (( ! "$?" )); then if (( ! "$?" )); then