blob: a128e59aece4a3980819cd23efa1101c019ee8bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
# Fail fast (e) and echo commands (vx)
set -evx
echo --color > .rspec
echo -fp >> .rspec
sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers;
# If we have any args, just run the given command
if [ -n "$1" ]; then
sudo -E $(which bundle) exec $@;
else
sudo -E $(which bundle) exec rake spec;
bundle exec bundle-audit check --update;
fi
|