Skip to content

Commit

Permalink
Bugfix for getslackbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Azman M. Yusof committed Jul 17, 2017
1 parent 02e6d24 commit 09a2461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions getslackbuild
Expand Up @@ -298,7 +298,7 @@ function do_build()
local pkg_name=$1
local pkg_vers=$2
local pkg_path=$3
local pkg_temp=$4
local opt_temp=$4
local opt_inst=$5
# check if already installed? should check version as well?
local pkg_temp="^${pkg_name}-[^-]*-[^-]*-[^-]*$"
Expand All @@ -317,7 +317,7 @@ function do_build()
[ $UID -ne 0 ] &&
echo -e "Must run as root! ($pkg_name-$pkg_vers)\n" && return
# start build?
local log_file=${pkg_temp}/${pkg_name}.buildlog
local log_file=${opt_temp}/${pkg_name}.buildlog
cd ${pkg_path}
[ ! -f "${pkg_name}.SlackBuild" ] &&
echo -e "Script '$pkg_exec' not found in $pkg_path!\n" && exit 1
Expand Down

0 comments on commit 09a2461

Please sign in to comment.