Skip to content

Commit

Permalink
🐛 FIX: bad path for utils.sh for #206
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena committed Mar 5, 2022
1 parent adf8f91 commit f37b00a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .gp/bash/scaffold-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,12 @@ if [[ ! $_lv =~ ^[6-9]*(\.\*)$ ]]; then
_lv="$_lv_default"
fi

# debug
echo "_lv=$_lv" | tee -a $_log
echo "_php=$_php" | tee -a $_log
echo "$_php is less thaan 8.0 = $(bash .gp/bash/utils.sh comp_ver_lt "$_php" 8.0)"

# Fallback to laravel 8.* if PHP version is < 8.0 and Larvel is 9.*
[[ $_lv == '9.*' && $(bash .gp/bash/utils.sh comp_ver_lt "$_php" 8.0) == 1 ]] && \
[[ $_lv == '9.*' && $(bash /tmp/utils.sh comp_ver_lt "$_php" 8.0) == 1 ]] && \
echo "WARNING: laravel $_lv requires PHP 8.*" | tee -a $_log && \
echo " Falling back to laravel 8.*" | tee -a $_log && \
_lv="8.*"

# debug
echo "after the fallback conditional _lv=$_lv"

# Scaffold
echo "BEGIN: Scaffolding Laravel Project" | tee -a $_log
echo " Creating Laravel $_lv project scaffolding in $_scaff_dest" | tee -a $_log
Expand Down

0 comments on commit f37b00a

Please sign in to comment.