Skip to content

Instantly share code, notes, and snippets.

@grzegorz-rozycki
Created January 17, 2018 13:19
Show Gist options
  • Save grzegorz-rozycki/e9d894b9e89da98e5076f61ea1a72b8d to your computer and use it in GitHub Desktop.
Save grzegorz-rozycki/e9d894b9e89da98e5076f61ea1a72b8d to your computer and use it in GitHub Desktop.
#!/bin/bash
# A wrapper for the box command.
# Disables the phar.readonly PHP option before running the build command.
#
if [ -z "${@}" ]
then
CMD=build
else
CMD="${@}"
fi
php -dphar.readonly=0 $(whereis box | sed 's/box: //') ${CMD}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment