Created
December 2, 2016 07:27
-
-
Save yvoronoy/0b06a23a1d6a84b3ec92071163e3fbbd to your computer and use it in GitHub Desktop.
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 | |
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