Skip to content

Instantly share code, notes, and snippets.

@yvoronoy
Created December 2, 2016 07:27
Show Gist options
  • Save yvoronoy/0b06a23a1d6a84b3ec92071163e3fbbd to your computer and use it in GitHub Desktop.
Save yvoronoy/0b06a23a1d6a84b3ec92071163e3fbbd to your computer and use it in GitHub Desktop.
#!/bin/bash
function runCommand()
{
echo $CMD;
eval $CMD;
}
N98=$(which n98-magerun2.phar);
command -v $N98 >/dev/null 2>&1 || {
echo "I require $N98 tool but it is not installed" >&2;
exit 1;
}
while read line
do
CMD="$N98 config:set $line"
runCommand
done < $1
CMD="$N98 cache:clean"
runCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment