just create the dir
This commit is contained in:
parent
7fedda7342
commit
fbf58b22f9
14
prm
14
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user