Last active
January 28, 2021 15:54
-
-
Save ohnotnow/8be4dc74bdeaf6f9ade238790d15f314 to your computer and use it in GitHub Desktop.
diff your current laravel project configs with the laravel/laravel repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -e | |
if [ $# != 1 ]; | |
then | |
echo 'Please supply a laravel version to check' | |
exit 1 | |
fi | |
LARAVEL_VERSION=$1 | |
TEMPDIR=`mktemp -d /tmp/laravel-config-diffs.XXXXXX` | |
git clone --branch "${LARAVEL_VERSION}" [email protected]:laravel/laravel.git ${TEMPDIR}/laravel | |
shopt -s nullglob | |
for F in config/*.php | |
do | |
echo | |
echo "######## ${F} ########" | |
echo | |
git diff ${F} ${TEMPDIR}/laravel/${F} | |
done | |
# rm -fr "${TEMPDIR}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment