Skip to content

Instantly share code, notes, and snippets.

@ohnotnow
Last active January 28, 2021 15:54
Show Gist options
  • Save ohnotnow/8be4dc74bdeaf6f9ade238790d15f314 to your computer and use it in GitHub Desktop.
Save ohnotnow/8be4dc74bdeaf6f9ade238790d15f314 to your computer and use it in GitHub Desktop.
diff your current laravel project configs with the laravel/laravel repo
#!/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