mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
refactor(Apps/Defines): Codefactor warning (#3714)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
unamestr=`uname`
|
unamestr=$(uname)
|
||||||
if [[ "$unamestr" == 'Darwin' ]]; then
|
if [[ "$unamestr" == 'Darwin' ]]; then
|
||||||
AC_PATH_ROOT=$(greadlink -f "$AC_PATH_APPS/../")
|
AC_PATH_ROOT=$(greadlink -f "$AC_PATH_APPS/../")
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ function comp_configure() {
|
|||||||
|
|
||||||
|
|
||||||
function comp_compile() {
|
function comp_compile() {
|
||||||
[ $MTHREADS == 0 ] && MTHREADS=`grep -c ^processor /proc/cpuinfo` && MTHREADS=$(($MTHREADS + 2))
|
[ $MTHREADS == 0 ] && MTHREADS=$(grep -c ^processor /proc/cpuinfo) && MTHREADS=$(($MTHREADS + 2))
|
||||||
|
|
||||||
echo "Using $MTHREADS threads"
|
echo "Using $MTHREADS threads"
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ if [ ! -d "$J_PATH/.git" ]; then
|
|||||||
git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" reset --hard "$J_VER_REQ"
|
git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" reset --hard "$J_VER_REQ"
|
||||||
else
|
else
|
||||||
# legacy code, with new rev of joiner the update process is internally handled
|
# legacy code, with new rev of joiner the update process is internally handled
|
||||||
_cur_branch=`git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" rev-parse --abbrev-ref HEAD`
|
_cur_branch=$(git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" rev-parse --abbrev-ref HEAD)
|
||||||
_cur_ver=`git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" name-rev --tags --name-only $_cur_branch`
|
_cur_ver=$(git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" name-rev --tags --name-only $_cur_branch)
|
||||||
if [ "$_cur_ver" != "$J_VER_REQ" ]; then
|
if [ "$_cur_ver" != "$J_VER_REQ" ]; then
|
||||||
git --git-dir="$J_PATH/.git" --work-tree="$J_PATH/" rev-parse && git --git-dir="$J_PATH/.git" --work-tree="$J_PATH/" fetch --tags origin master --quiet
|
git --git-dir="$J_PATH/.git" --work-tree="$J_PATH/" rev-parse && git --git-dir="$J_PATH/.git" --work-tree="$J_PATH/" fetch --tags origin master --quiet
|
||||||
git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" reset --hard "$J_VER_REQ"
|
git --git-dir="$J_PATH/.git/" --work-tree="$J_PATH/" reset --hard "$J_VER_REQ"
|
||||||
|
|||||||
Reference in New Issue
Block a user