document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_17800
--- +++ @@ -24,3 +24,7 @@ done tools/build-install-guides-rst.sh $LINKCHECK + +# This marker is needed for infra publishing +MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID" +echo $MARKER_TEXT > publish-docs/.root-marker
bash
d_bash_17801
--- +++ @@ -2,8 +2,18 @@ LOCK="/home/${USER}/dlrn.lock" set -e +# if any arguments are given, assume console foreground execution +ARG=$1 + exec 200>$LOCK -flock -n 200 || exit 1 +if ! flock -n 200 +then + if [ -n "$ARG" ] + then + echo "DLRN ${USER} running, please try again after disabling it." +...
bash
d_bash_17802
--- +++ @@ -9,7 +9,28 @@ # Setup Homebrew Packages # ############################################################################### -brew bundle $SCRIPT_DIR/Brewfile +brew update + +brew upgrade + +brew tap Homebrew/brewdler + +brew brewdle --file=$SCRIPT_DIR/B...
bash
d_bash_17803
--- +++ @@ -3,22 +3,6 @@ # edw_import_cron.sh # Script for cron-based (e.g. hourly) import of new ENCODE files at EDW to encoded app # TODO: would be good to have lock file to suppress multiple instances (or add to command) - -hostname=$1 -shift -notify=$@ - -ext=`date +%b%d.%H` - -cd /srv/encoded -out=/srv/cr...
bash
d_bash_17804
--- +++ @@ -3,7 +3,8 @@ case "$BUILD_TYPE" in check) - ./util/check_header_guards.sh + ./util/check_header_guards.sh && + ./util/check_selfsufficiency.sh ;; normal|codecov) make -C build
bash
d_bash_17805
--- +++ @@ -17,12 +17,15 @@ # http://phantomjs.org/download.html # +# fontconfig seems to be a hidden dependency for PhantomJS +apt-get update && apt-get install -y libfontconfig + PHANTOMJS_VER=2.1.1 PJS=phantomjs-$PHANTOMJS_VER-linux-x86_64 mkdir /usr/local/share cd /usr/local/share -wget https://bitbucke...
bash
d_bash_17806
--- +++ @@ -22,4 +22,4 @@ SPECIAL_SETTINGS_URL=${MYTARDIS_SETTINGS_URL/settings.py.enc/settings_testing.py.enc} wget -q -O - $SPECIAL_SETTINGS_URL | openssl $MYTARDIS_SETTINGS_CIPHER -d -pass pass:$MYTARDIS_SETTINGS_PASS > $top/settings.py -echo "su -l ubuntu -c $top/install-wrapper.sh < /dev/null 2>&1 | tee $top...
bash
d_bash_17807
--- +++ @@ -28,3 +28,6 @@ # vim nvim +PlugUpgrade +PlugInstall +PlugUpdate +qall + +# atom +apm upgrade --no-confirm
bash
d_bash_17808
--- +++ @@ -11,7 +11,7 @@ # Setup Datsets mkdir -p input -DATASETS=("ryanholbrook/stanford-cars-for-learn" "ryanholbrook/cv-course-models" "ryanholbrook/computer-vision-resources") +DATASETS=("ryanholbrook/car-or-truck" "ryanholbrook/cv-course-models" "ryanholbrook/computer-vision-resources") for dataset in "$...
bash
d_bash_17809
--- +++ @@ -7,6 +7,6 @@ # gitconfig echo Installing gitconfig... -cp gitconfig ~/.gitconfig +cat gitconfig >> ~/.gitconfig echo Installation was successfully completed!
bash
d_bash_17810
--- +++ @@ -7,6 +7,7 @@ for br in $(git branch --list | grep -v master | sed 's/\*//' ) ; do [ -n "$br" ] && { + echo On branch: $br git checkout $br || die git rebase master || die git pull origin || die
bash
d_bash_17811
--- +++ @@ -23,4 +23,4 @@ pod --project-directory="$IOS_DIR" install # Run Xcode to build the app. -xcodebuild -sdk iphonesimulator -arch arm64 -configuration Release -workspace "$IOS_DIR/ios-app.xcworkspace" -scheme ios-app +xcodebuild -sdk iphonesimulator -arch x86_64 -configuration Release -workspace "$IOS_DIR...
bash
d_bash_17812
--- +++ @@ -1,4 +1,12 @@ #!/bin/sh + + +if [[ "${TRAVIS_BRANCH}" == "swift-3"]]; then + gem install bundler + bundle install + bundle exec fastlane test + exit $? +fi if [[ "TRAVIS_PULL_REQUEST" != false]]; then gem install bundler
bash
d_bash_17813
--- +++ @@ -3,12 +3,9 @@ echo "Installing Git..." apt-get -y install git echo "Cloning install-msc.git..." -sudo -H -u vagrant git clone https://github.com/msgilligan/install-msc.git -echo "cd install-msc..." +sudo -H -u vagrant git clone https://github.com/mastercoin-MSC/install-msc.git cd install-msc -echo "Che...
bash
d_bash_17814
--- +++ @@ -3,6 +3,13 @@ rubybench=$(cd $(dirname "$0"); cd ..; pwd) cd "$rubybench" + +# Run yjit-bench +for bench in activerecord hexapdf liquid-render mail psych-load railsbench \ + binarytrees chunky_png erubi erubi_rails etanni fannkuchredux lee nbody optcarrot ruby-lsp rubykon; do + benchmark/y...
bash
d_bash_17815
--- +++ @@ -16,3 +16,11 @@ # build the Varnish docker image sudo docker build --force-rm --tag="varnish4" /vagrant/varnish4/ + +# install the setuid run-varnish-container script +sudo mkdir --parents /opt/vclfiddle/ +sudo gcc /vagrant/run-varnish-container.c -o /opt/vclfiddle/run-varnish-container +sudo cp /vagra...
bash
d_bash_17816
--- +++ @@ -1,4 +1,4 @@ -if [ -d "$HOME/virtualenv" ];then - export WORKON_HOME="$HOME/virtualenv" +if [ -d "$HOME/.virtualenvs" ];then + export WORKON_HOME="$HOME/.virtualenvs" alias venv="source /usr/share/virtualenvwrapper/virtualenvwrapper.sh" fi
bash
d_bash_17817
--- +++ @@ -1,2 +1,2 @@ alias brews='brew list -1' -alias bubu="brew update && brew upgrade && brew cleanup" +alias bubu="brew update && brew upgrade --all && brew cleanup"
bash
d_bash_17818
--- +++ @@ -6,7 +6,7 @@ export DashboardsDir=$HOME/OSEHRA/Dashboards mkdir -p $DashboardsDir cd $DashboardsDir -git clone git@github.com:OSEHR/OSEHRA-Automated-Testing.git +git clone git://github.com/OSEHR/OSEHRA-Automated-Testing.git git checkout --track UseCaseTesting ln -s $DashboardsDir/OSEHRA-Automated-Test...
bash
d_bash_17819
--- +++ @@ -10,9 +10,9 @@ rm -rf compss/programming_model/bindings/python/src/pycompss/api/tests rm -rf compss/programming_model/bindings/python/src/pycompss/util/translators - ln -s ../../../../../../../dependencies/autoparallel/pycompss/api/parallel.py compss/programming_model/bindings/python/src/pycompss/...
bash
d_bash_17820
--- +++ @@ -6,7 +6,7 @@ unzip -q build/django-autoload-0.01.zip -d build unzip -q build/django-dbindexer-0.3.zip -d build -unzip -q build/django-nonrel-1.4.1.zip -d build +unzip -q build/django-nonrel-1.4.3.zip -d build unzip -q build/djangoappengine-1.0.zip -d build unzip -q build/djangotoolbox-0.9.2.zip -d bu...
bash
d_bash_17821
--- +++ @@ -24,4 +24,6 @@ ln -s numeric-1.2.6/src/svd.js numeric_svd.js cd .. +# clean up downloaded packages +rm *.zip
bash
d_bash_17822
--- +++ @@ -22,5 +22,5 @@ exit fi -pip install -q 'hy==0.12.1' +pip install -q 'hy==0.13.0' hy ./container.hy
bash
d_bash_17823
--- +++ @@ -16,7 +16,7 @@ ###################################################################### setCppcheckTriggerVars() { - CPPCHECK_BLDRVERSION_STD=${CPPCHECK_BLDRVERSION_STD:-"1.68"} + CPPCHECK_BLDRVERSION_STD=${CPPCHECK_BLDRVERSION_STD:-"1.72"} CPPCHECK_BLDRVERSION_EXP=${CPPCHECK_BLDRVERSION_EXP:-"1.72"...
bash
d_bash_17824
--- +++ @@ -9,7 +9,7 @@ set -e pushd ./bin > /dev/null - cmake .. + cmake -DCPM_MODULE_CACHE_DIR=$HOME/.cpm_cache .. make popd
bash
d_bash_17825
--- +++ @@ -2,7 +2,7 @@ service_count=`docker ps -a | grep "Up " | wc -l` -if [ "${service_count}" -eq "3" ] +if [ "${service_count}" -eq "4" ] then echo "Service are up and running." exit 0
bash
d_bash_17826
--- +++ @@ -19,9 +19,8 @@ if [ ! -d dist-ghp/ ]; then npm run build -- \ - --baseHref='https://blog.jonrshar.pe/salary-stats' \ - --deployUrl='/salary-stats/' \ - --outputPath=dist-ghp/ + --base-href='/salary-stats/' \ + --output-path=dist-ghp/ fi if [ ! -f "$ARCHIVE" ]; the...
bash
d_bash_17827
--- +++ @@ -3,6 +3,6 @@ echo "Sending coverage info" lcov --directory . --capture --output-file coverage.info && -lcov --remove coverage.info '/usr/*' 'test/*' 'benchmarks/*' 'examples/*' --output-file coverage.info && +lcov --remove coverage.info '/usr/*' 'test/*' 'benchmarks/*' 'examples/*' 'build/*' 'bindings/...
bash
d_bash_17828
--- +++ @@ -4,24 +4,26 @@ archive="$(date +%B-%d-%Y | tr '[:upper:]' '[:lower:]')" locations=() -case "$1" in - root) - locations+=( - "$HOME" - "/etc" - "/var" - ) - ;; - archive) - locations+=('/media/archive/git') - ;; - media) - locations+=('/media/media') - ;; - *) - echo "Unknown location spec...
bash
d_bash_17829
--- +++ @@ -1,2 +1,2 @@ -export PATH="./bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH" +export PATH="./bin:$HOME/.local/bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH" export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
bash
d_bash_17830
--- +++ @@ -3,13 +3,27 @@ set -e -x # Add ClusterHQ and recent ZFS and Docker repositories + +# Ensure add-apt-repository command is available sudo apt-get -y install software-properties-common + +# ZFS not available in base Ubuntu - add ZFS repo sudo add-apt-repository -y ppa:zfs-native/stable + +# Add Docker ...
bash
d_bash_17831
--- +++ @@ -18,7 +18,7 @@ echo '==> osm_omk-osm.sh: Creating buildings OSM XML for OpenMapKit' echo '' osmosis --read-apidb \ - authFile=/etc/osmosis/osm.properties + authFile=/etc/osmosis/osm.properties \ validateSchemaVersion=no \ --tf accept-ways building=* \ --used-...
bash
d_bash_17832
--- +++ @@ -3,7 +3,7 @@ apt-get update apt-get install qt5-default pkg-config -y cd /usr/src -wget -N http://developer.download.nvidia.com/embedded/L4T/r28_Release_v1.0/BSP/source_release.tbz2 +wget -N https://developer2.download.nvidia.com/embedded/L4T/r28_Release_v2.0/BSP/source_release.tbz2 tar -xvf source_rel...
bash
d_bash_17833
--- +++ @@ -16,7 +16,7 @@ fi # XXX Returns single line, with variable spacing - branches=$(git -C $dir branch 2> /dev/null) || continue + branches=$(git -C $dir show-branch --list 2> /dev/null) || continue IFS=$'\n' for branch in "${branches}"; do
bash
d_bash_17834
--- +++ @@ -1,3 +1,3 @@ -mv .git/object/pack/pack-*.pack . +mv .git/objects/pack/pack-*.pack . cat pack-*.pack | git-unpack-objects rm pack-*.pack
bash
d_bash_17835
--- +++ @@ -17,8 +17,15 @@ alias xcp='xcode-select --print-path' alias xcdd='rm -rf ~/Library/Developer/Xcode/DerivedData/*' -if [[ -d $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app ]]; then - alias simulator='open $(xcode-select -p)/Platforms/iPhoneSimulator.p...
bash
d_bash_17836
--- +++ @@ -7,6 +7,9 @@ export CLASSPATH=<%= @classpath %> export PIG_MAIN_CLASS=com.mortardata.hawk.HawkMain export PIG_OPTS="<% @pig_opts.each do |k,v| %>-D<%= k %>=<%= v %> <% end %>" +#Uncomment to debug pig code +#export PIG_OPTS="$PIG_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000" + # U...
bash
d_bash_17837
--- +++ @@ -14,8 +14,12 @@ # EOF -# If this isn't set, things currently fail in a confusing way: -export SWPATH="$SPECWARE4:/" +# If SWPATH isn't set, things currently fail in a confusing way: +# To override this, set SWPATH before calling this script: +if [ -z $SWPATH ] ; then + SWPATH="$SPECWARE4:/" +fi +ex...
bash
d_bash_17838
--- +++ @@ -10,7 +10,7 @@ git submodule update --init --recursive --remote fi -touch -d @0 Makefile-distfiles +touch -t 197001010200 Makefile-distfiles autoreconf --install -W none
bash
d_bash_17839
--- +++ @@ -30,6 +30,9 @@ # Prettier od alias od='od -A x -t x1z -v' +# Use my style file for mdl +alias mdl='mdl --style ~/.config/mdl/style.rb' + # Local alias definitions if [[ -f $HOME/.aliases_local.sh ]]; then # shellcheck source=/dev/null
bash
d_bash_17840
--- +++ @@ -8,4 +8,4 @@ sudo unzip -o -d /usr/local/ /tmp/dart-sdk.zip sudo chmod -R a+rx /usr/local/dart-sdk rm /tmp/dart-sdk.zip -$SCRIPT_PATH/pub.sh update --packages-dir +$SCRIPT_PATH/pub.sh get --packages-dir
bash
d_bash_17841
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.2%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.2_8.tar.gz" ;; java18) - echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk18-2022-02-15-13-13-beta/OpenJDK18-jdk_x64_linux_hotspot_2022...
bash
d_bash_17842
--- +++ @@ -4,7 +4,7 @@ DB_URI=$(echo $VCAP_SERVICES | jq -r '.postgres[0].credentials.uri') echo -n "${PUBKEY}" > /app/public.key gpg2 --import /app/public.key -pg_dump "${DB_URI}" --no-acl --no-owner | gzip | \ +pg_dump "${DB_URI}" --no-acl --no-owner --clean --if-exists | gzip | \ gpg2 --trust-model always -...
bash
d_bash_17843
--- +++ @@ -12,7 +12,7 @@ /etc/init.d/condor start fi -sudo -u $GALAXY_USER -i <<EOF +su -m -l $GALAXY_USER <<EOF env cp $JOB_CONF_XML_SAMPLE ./config/job_conf.xml
bash
d_bash_17844
--- +++ @@ -1,2 +1,2 @@ #!/usr/bin/env sh -g++ -O3 -o benchmark src/benchmark.cc -l:libmysqlclient.a -lssl -lrt -lz +g++ -O2 -o benchmark src/benchmark.cc -l:libmysqlclient.a -lssl -lrt -lz
bash
d_bash_17845
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -exou pipefail -rm -rf $(PWD)/.aptomi-install-cache +rm -rf ${PWD}/.aptomi-install-cache function test_install { os="$1"
bash
d_bash_17846
--- +++ @@ -9,11 +9,15 @@ exit 1 } -echo Installing Handbrake +#echo Installing Handbrake +#sudo add-apt-repository ppa:stebbins/handbrake-releases || error_exit "Unable to add repository." +#sudo apt-get update || error_exit "Unable to update packages." +#sudo apt-get install handbrake-gtk handbrake-cl...
bash
d_bash_17847
--- +++ @@ -31,11 +31,10 @@ version="$major.$minor.$patch" if [[ MAJOR -ne 0 ]] || [[ MINOR -ne 0 ]] || [[ PATCH -ne 0 ]]; then - echo "Next version: v$version" # Update pubspec. sed -i '' "s/^version:.*/version: $version/g" "./../pubspec.yaml" && echo "Updated...
bash
d_bash_17848
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -python3 -m pip install pexpect unidecode xmltodict jsonrpclib xmlrpclib --user +python3 -m pip install pexpect unidecode xmltodict jsonrpclib-pelix xmlrpclib --user if [ ! -f corenlp-python ] then
bash
d_bash_17849
--- +++ @@ -20,8 +20,9 @@ $SSHD -f /dev/null -h $srcdir/etc/host \ -o 'Port 4711' \ -o 'Protocol 2' \ + -o "AuthorizedKeysFile $srcdir/etc/user.pub" \ -o 'UsePrivilegeSeparation no' \ - -o "AuthorizedKeysFile $srcdir/etc/user.pub" \ + -o 'StrictModes no' \ -D & sshdpid=$!
bash
d_bash_17850
--- +++ @@ -15,6 +15,11 @@ git checkout -b "$branch" bundle install + +# it appears that the gem that triggers this script fires off this script before +# the gem is actually available via bundler on rubygems.org. +sleep 120 + bundle exec rake dependencies:update git add .
bash
d_bash_17851
--- +++ @@ -1,5 +1,6 @@ # Docker alias dtmp="docker-compose run --rm" +alias docui="docker run --rm -itv /var/run/docker.sock:/var/run/docker.sock skanehira/docui" # Kubernetes alias kc="kubectl"
bash
d_bash_17852
--- +++ @@ -2,8 +2,15 @@ set -e # set -x +# Detect which `ls` flavor is in use +if ls --color > /dev/null 2>&1; then + COLORFLAG="--color=never" +else + COLORFLAG="" +fi + FILES=$( - ls --color=never test/**/*.js test/*.js | \ + ls $COLORFLAG test/**/*.js test/*.js | \ sed "s/test\//.\//g" | \ ...
bash
d_bash_17853
--- +++ @@ -19,6 +19,7 @@ alias gits='git status' alias gitm='git status && git commit -m "Minor changes" && git push' alias gitp='git pull' +alias gitdiff='git diff --no-ext-diff -w "$@" | vim -R –' alias vi='TERM=xterm vim -X' alias grep='grep -i --color=auto' alias s='su - root'
bash
d_bash_17854
--- +++ @@ -15,7 +15,7 @@ fi echo "Install dependencies" -npm install -g gulp@^3.9.1 bower nightwatch +npm install -g gulp-cli bower nightwatch npm install bower install
bash
d_bash_17855
--- +++ @@ -12,7 +12,7 @@ marc_grep $1 'if "TYP"=="'${bibwiss_type}'" extract "856u"' traditional | \ awk '{print $2}' | \ xargs -I '{}' /bin/sh -c $'./translate_url_multiple "$1" | \ - jq -r \'.[] | [ if .tags[] then "Reference" else empty end, if .creators[] then "Author" else empty end, .url, .ti...
bash
d_bash_17856
--- +++ @@ -11,6 +11,10 @@ # Delete old recorded entry if new entry is a duplicate. setopt HIST_IGNORE_ALL_DUPS + +# Do not enter command lines into the history list if they are duplicates of the +# previous event. +setopt HIST_IGNORE_DUPS # Remove superfluous blanks before adding to the history list. setopt ...
bash
d_bash_17857
--- +++ @@ -1,8 +1,12 @@ #!/bin/bash #sudo su - +# As of 2015/09/10, build requires geoip >= 1.6.3. +# Add a PPA for recent versions. +add-apt-repository ppa:maxmind/ppa -y + apt-get update -apt-get --yes install mdadm xfsprogs jq git python-pip python-protobuf cmake libgeoip-dev zlib1g-dev mercurial +apt-get --...
bash
d_bash_17858
--- +++ @@ -1,3 +1,5 @@ +#!/bin/sh + freq=20000 min_good=0 max_bad=0 @@ -5,7 +7,7 @@ missed=0 while [ ${max_bad} -eq 0 -o ${missed} -eq 0 ] do - missed=`./testskew -qm ${freq} 1` + missed=`./testskew -qS ${freq} 1 | sed 's|^-||'` if [ ${missed} -lt 1000 ] then freq=$((${freq} * 2)) @@ -16,8 +18,8 @...
bash
d_bash_17859
--- +++ @@ -1,2 +1,21 @@ pro() { cd ~/projects/$1; } -compctl -W ~/projects -/ pro + +# Sourced from https://github.com/hashrocket/dotmatrix +pux() { + local name cols + if [ -n "$1" ]; then + pro $1 + fi + name="$(basename $PWD | sed -e 's/\./-/g')" + cols="$(tput cols)" + if ! $(tmux has-session -t $name ...
bash
d_bash_17860
--- +++ @@ -7,7 +7,7 @@ git cmake assimp -fcl +fcl03 bullet flann boost
bash
d_bash_17861
--- +++ @@ -10,7 +10,7 @@ version=$(awk '$1 == "VERSION" { print $3 }' Makefile) -# Binary buils +# Binary builds while read env; do docker run --rm -v ${src_dir}:/root/go/src/facette.io/facette facette/buildenv:${env} make dist-bin mv dist/*.tar.gz ${tmp_dir}/ @@ -30,6 +30,7 @@ stretch-amd64 stretc...
bash
d_bash_17862
--- +++ @@ -6,7 +6,7 @@ DESTDIR="databases" SOURCES=( "Gelbooru (0.2)/gelbooru.com" - "Gelbooru (0.2)/rule34.xxx" + "Gelbooru (0.2)/api.rule34.xxx" ) MIN_TAG_COUNT=100
bash
d_bash_17863
--- +++ @@ -7,6 +7,9 @@ # Use Brew instead of system Ruby ,path-add "/usr/local/opt/ruby/bin" + +# Add TeX to path (for org-mode PDF exporting) +,path-add "/usr/local/texlive/2014/bin/universal-darwin" # Bash completion lives in the brew directory if [ -f $(brew --prefix)/etc/bash_completion ]; then
bash
d_bash_17864
--- +++ @@ -1,4 +1,4 @@ -KERL_VERSION="1.8.7" +KERL_VERSION="2.0.0" ensure_kerl_setup() { set_kerl_env
bash
d_bash_17865
--- +++ @@ -25,7 +25,7 @@ } p() { - cd "$PROJECTS/$(find "$PROJECTS" -type d -maxdepth 3 -name .git | sed 's#/\.git$##' | sed "s#^$PROJECTS/##" | selecta)" + cd "$PROJECTS/$(find "$PROJECTS" -maxdepth 3 -name .git | sed 's#/\.git$##' | sed "s#^$PROJECTS/##" | selecta)" } # source dotfiles
bash
d_bash_17866
--- +++ @@ -13,6 +13,20 @@ ## See the License for the specific language governing permissions and ## limitations under the License. ## -# for linux ;-) -gcc -c -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux Native.c -gcc -shared -o Native.so Native.o +# for linux ;-) and Mac OS X +case `uname -s` + Darwin) +...
bash
d_bash_17867
--- +++ @@ -1 +1,14 @@ #INSTALL METAWEBDESIGN +sudo apt-get install sqlite3 apache2 php5 php5-sqlite git wget +sudo mkdir /home/mwd +sudo chmod 777 /home/mwd/ +sudo ln -s /home/mwd/runtime-EclipseApplication/ /var/www/html/mwd +cd /home/mwd +wget http://www.piratevalpo.cl/desarrollo/mwd.tar.gz +tar -xvf mwd.tar.gz +...
bash
d_bash_17868
--- +++ @@ -2,9 +2,14 @@ mysql_flags="-u root --socket=/tmp/mysql.sock" +RESULT=`mysql ${mysql_flags} --skip-column-names -e "SHOW DATABASES LIKE 'credit_db'"` +if [ "$RESULT" == "credit_db" ]; then + echo "Databases exist, SQL script execution skipped" + return +fi + echo "Executing SQL scripts..." cat ...
bash
d_bash_17869
--- +++ @@ -8,23 +8,12 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source $DIR/config.sh -if [[ ! $1 == "" ]] +if [[ -d $DIST_DIR ]] then - if [[ ! -d $WORKING_DIR/$1 ]] - then - echo "$WORKING_DIR/$1 does not exist" - exit 1 - fi - - DIST_DIR=$WORKING_DIR/$1/dist + sudo rm -rf $DIST_DI...
bash
d_bash_17870
--- +++ @@ -3,7 +3,7 @@ if [ "$RAILS_VERSION" == "4.2" ] then gem uninstall -v ">= 2" -i $(rvm gemdir)@global -ax bundler || true - gem install bundler -v "< 2" gem install bundler -v "< 2" + gem install bundler -v "< 2" else gem install bundler fi
bash
d_bash_17871
--- +++ @@ -40,10 +40,10 @@ riak-admin cluster plan riak-admin cluster commit - while `riak ping` == 'pong' && !(riak-admin transfers | grep -iqF 'No transfers active') + while ! riak-admin transfers | grep -iqF 'No transfers active' do echo 'Transfers in progress' - sleep 10 + ...
bash
d_bash_17872
--- +++ @@ -4,7 +4,6 @@ alias beep="printf '\a'" alias cp='cp -i' alias mv='mv -i' -alias rm='rm -i' alias mkdir='mkdir -p' alias grep='grep --color=auto'
bash
d_bash_17873
--- +++ @@ -1,6 +1,11 @@ #!/bin/sh -set -evx +set -e + +if ! ls dist/gibs-gdal-*.el7.*.rpm >/dev/null 2>&1; then + echo "No RPMs found in ./dist/" >&2 + exit 1 +fi SCRIPT_NAME=$(basename "$0") TAG="$1" @@ -19,9 +24,9 @@ grep -Ev '^FROM' docker/el7/Dockerfile >> tmp/docker/Dockerfile ( - set -evx + set ...
bash
d_bash_17874
--- +++ @@ -2,6 +2,8 @@ set -ex +rm -rf dist/ || true + python3.5 setup.py sdist python3.5 -m twine check dist/* python3.5 setup.py sdist upload
bash
d_bash_17875
--- +++ @@ -15,4 +15,10 @@ # Step 2 - copy headers into framework xcrun cp -R "${BUILT_PRODUCTS_DIR}/include/Realm" "${SF_FRAMEWORK_PATH}/Headers" - +cd "${SF_FRAMEWORK_PATH}" +/bin/mkdir -p "Versions/A/Headers" +/bin/mv Headers/Realm/* Versions/A/Headers/ +/bin/rm -rf Headers +/bin/mv "${PRODUCT_NAME}" "Versions...
bash
d_bash_17876
--- +++ @@ -10,19 +10,22 @@ n=0; max=10 +secs=6 while [ -z "$(docker ps -q -f health=healthy -f name=anydataset_db_$1)" ] && [ "$n" -lt "$max" ]; do echo "Waiting for $1..."; n=$(( n + 1 )) - sleep 5; + sleep $secs; done if [ "$n" -gt "$max" ] then - echo "$mysql was not health after $(( max * 5 )...
bash
d_bash_17877
--- +++ @@ -4,3 +4,5 @@ . "$HOME/.bashrc" fi fi + +PATH="$HOME/bin:$PATH"
bash
d_bash_17878
--- +++ @@ -6,7 +6,7 @@ update_role() { echo "Update role ${1}" - test -d ${ROLES_DIR}/${1} && git pull || git clone ${GIT_PREFIX_URL}/${2}.git ${ROLES_DIR}/${1} + test -d ${ROLES_DIR}/${1} && pushd .; cd ${ROLES_DIR}/${1}; git pull; popd || git clone ${GIT_PREFIX_URL}/${2}.git ${ROLES_DIR}/${1} } check_p...
bash
d_bash_17879
--- +++ @@ -5,7 +5,9 @@ export CHEF_CLIENT_KEY=/var/jenkins_home/.chef/chef_clientkey.pem export CHEF_NODE_NAME=jenkins_ac export CHEF_SERVER_URL=https://api.opscode.com/organizations/newmediadenver -export COOKBOOK_NAME="nmd$JOB_NAME" +if [ -z "$COOKBOOK_NAME" ]; then + export COOKBOOK_NAME="nmd$JOB_NAME" +fi ...
bash
d_bash_17880
--- +++ @@ -1,3 +1,7 @@ #!/usr/bin/env bash composer install +git clone git@github.com:OpenMage/magento-mirror.git magento +cd magento +git checkout tags/1.9.1.0 +cd ..
bash
d_bash_17881
--- +++ @@ -9,8 +9,9 @@ echo "-------------------" echo "" - ionic plugin rm cordova-plugin-device # "Device" - ionic plugin rm cordova-plugin-console # "Console" + cordova plugin rm cordova-plugin-device # "Device" + cordova plugin rm cordova-plugin-console # "Console" + cordova plugin...
bash
d_bash_17882
--- +++ @@ -3,6 +3,10 @@ TKSRC=$HOME/.tksrc CONFIGDIR=$HOME/.taxi DATADIR=$(eval echo $(grep "^file = " $TKSRC | cut -d" " -f3 | cut -d% -f1)) + +if [ $(command -v selinuxenabled >/dev/null 2>&1) -a $(selinuxenabled) ]; then + chcon -Rt svirt_sandbox_file_t $TKSRC $CONFIGDIR $DATADIR +fi docker run \ --...
bash
d_bash_17883
--- +++ @@ -10,5 +10,4 @@ current_bucket="$(ci/bucket.sh)" echo "Pushing to bucket: ${current_bucket}" -aws s3 sync build/ "${current_bucket}" --delete --acl=public-read --exclude '*.svg' -aws s3 sync build/ "${current_bucket}" --delete --acl=public-read --exclude '*' --include '*.svg' --content-type 'image/svg+x...
bash
d_bash_17884
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -for i in `oc get pods | cut -f 1 -d ' ' | grep -v NAME` +for i in `./oc get pods | cut -f 1 -d ' ' | grep -v NAME` do echo "LOGS FOR $i" ./oc logs $i 2> /dev/null
bash
d_bash_17885
--- +++ @@ -1,8 +1,3 @@ -# Define AGENT_OS if not present. -if [ -z "${AGENT_OS+1}" ]; then - AGENT_OS=$(uname -s) -fi - # It seems that protoc really wants its dependencies to be in /usr/local/lib. # In some setups, e.g., Azure pipelines, this does not work, so we need to help # it find its dynamic libraries.
bash
d_bash_17886
--- +++ @@ -5,6 +5,8 @@ NEW_ORG=${NEW_ORG:-circleci} DOCKERFILE_PATH=$1 + +echo Building docker image from $DOCKERFILE_PATH function image_name() { repo_tag=$( echo ${DOCKERFILE_PATH} | sed 's|.*/\([^/]*\)/images/\(.*\)/Dockerfile|\1:\2|g' | sed 's|/|-|g') @@ -31,5 +33,6 @@ fi docker push $IMAGE_NAME +d...
bash
d_bash_17887
--- +++ @@ -44,6 +44,6 @@ shift fi -testr run --parallel --subunit $($(dirname $0)/tests2skip.py $skip_file $@) | tee >( subunit2junitxml --output-to=tempest.xml ) | $(dirname $0)/subunit-trace.py --no-failure-debug -f +testr run --parallel --subunit $($(dirname $0)/tests2skip.py $skip_file $@) | tee >( subun...
bash
d_bash_17888
--- +++ @@ -16,5 +16,5 @@ # add a new line to the key. OpenSSH is very picky that keys are always end with a newline echo >> /home/.ssh/key # Fix permissions of SSH key - chmod 400 /home/.ssh/key + chmod 600 /home/.ssh/key fi
bash
d_bash_17889
--- +++ @@ -19,6 +19,7 @@ bins vendor/bundle vendor/cache Gemfile.lock" | log_pretty vagrant ssh -c "cp -fv ~/${tarball_name} \ /chef-bcpc-host/${tarball_name}" | log_pretty +mv -v ${tarball_name} ../${tarball_name} | log_pretty set +x -printf "Bins tarball in ${tarball_name}\n" | log_pretty +printf "B...
bash
d_bash_17890
--- +++ @@ -23,13 +23,19 @@ # Wait for all of the agents to start # echo "Waiting for measurement agents to become ready"; -barrier_wait "stub"; +barrier_wait "stub"; _rval=$? +if [ $_rval -ne 0 ]; then + echo "*** WARNING: not all stubs started ($_rval)" +fi # # Wait for all the monitors to come up # ech...
bash
d_bash_17891
--- +++ @@ -14,7 +14,7 @@ if [[ $(StringValidator isSubstring ${path} :) ]]; then echo /$(StringUtil replace path [A-Z]: $( - StringUtil toLowerCase ${path:0:1})) + StringUtil toLowerCase $(StringUtil substring path 1))) return fi @@ -26,7 +26,9 @@ local path=${1} if [[ ! $(StringValid...
bash
d_bash_17892
--- +++ @@ -16,9 +16,16 @@ file = ARGV[0] if ARGV.length>0 -srcDir = File.dirname(file) +# Copied from https://github.com/asciidoctor/asciidoctor-extensions-lab/blob/master/scripts/asciidoc-coalescer.rb +doc = Asciidoctor.load_file file, safe: :unsafe, header_only: true, attributes: options[:attributes] +header_...
bash
d_bash_17893
--- +++ @@ -8,7 +8,8 @@ if [ $(uname) == Darwin ]; then export JAVAPREFIX=$(/usr/libexec/java_home) else - export JAVAPREFIX="${JAVA_HOME:-/usr/java/default}" + # export JAVAPREFIX="${JAVA_HOME:-/usr/java/default}" + export JAVAPREFIX="${JAVA_HOME:-/usr}" fi export JAVA=$JAVAPREFIX/bin/java
bash
d_bash_17894
--- +++ @@ -3,5 +3,6 @@ source "$HOME/.homesick/repos/homeshick/homeshick.sh" homeshick clone basicdays/dotfiles homeshick cd dotfiles +git remote set-url "git@github.com:basicdays/dotfiles.git" git submodule init homeshick link dotfiles
bash
d_bash_17895
--- +++ @@ -17,8 +17,8 @@ # Load documents into the db # TODO: fix password in production for f in $(find /tmp/dublin-store -name "*.xml"); do -/usr/local/existdb/bin/client.sh -u admin -P glen32 -m /db/docker -p ${f}; done +/usr/local/existdb/bin/client.sh -u admin -P glen32 -m /db/docker -p /tmp/dublin-store/db...
bash
d_bash_17896
--- +++ @@ -21,10 +21,10 @@ # <node>: the hostname of the node where the resource is located (ie node-1) # <active>: either '0' or '1' if <node> matches the local hostname -host=$(hostname -s) +host=$(hostname -s|cut -f 1 -d .) for rsr in vip__public vip__management vip__public_vrouter vip__management_vroute...
bash
d_bash_17897
--- +++ @@ -1,4 +1,9 @@ #!/bin/bash -e + +# Add percona +sudo apt-get install -y percona-toolkit + +# Add database if [[ $DB == 'mysql' ]] then
bash
d_bash_17898
--- +++ @@ -20,3 +20,5 @@ mkdir -p /mnt/$PARTNAME/var/lib/minishift ln -s /mnt/$PARTNAME/var/lib/minishift /var/lib/minishift +mkdir -p /mnt/$PARTNAME/data +ln -s /mnt/$PARTNAME/data /data
bash
d_bash_17899
--- +++ @@ -1,56 +1,47 @@ -#!/usr/bin/env bash +#!/bin/sh -#################################### +################################################################################ # symlink_dotfiles.sh # -# This script backs up any old -# dotfiles on the system, and -# symlinks the new ones to their -# proper place...
bash