document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_2500
--- +++ @@ -24,5 +24,5 @@ git config --global difftool.kdiff3.trustExitCode true git config --global difftool.kdiff3.keepTemporaries false -git config --global --replace-all alias.difftool 'difftool -y' -git config --global --replace-all alias.mergetool 'mergetool -y' +git config --global --replace-all alias.dt '...
bash
d_bash_2501
--- +++ @@ -11,7 +11,13 @@ if [[ $RIAK_DOWNLOAD_URL == 'docker' ]] then - docker run --name "$RIAK_FLAVOR" -d -p 8087:8087 -p 8098:8098 "basho/$RIAK_FLAVOR" + if [[ $RIAK_FLAVOR == 'riak-ts' ]] + then + TAG='1.4.0' + else + TAG='latest' + fi + docker run --name "$RIAK_FLAVOR" -d -p...
bash
d_bash_2502
--- +++ @@ -6,8 +6,8 @@ REPO_MANAGER_OPTIONS="--repo-dir-quota 1000000000" RUN_ARTIFACT_MANAGER="java -Dlog4j.configuration=file:${GOBY_DIR}/log4j.properties \ -Djava.io.tmpdir=${TMPDIR} \ - -cp ${GOBY_DIR}/serverside-dependencies.jar \ - -jar artifact-manager.jar" + ...
bash
d_bash_2503
--- +++ @@ -1,4 +1,5 @@ setup() { + export FORECAST_IO_API_KEY=abc123 ew="bin/emoji-weather -tmpdir test/tmp" mkdir -p test/tmp }
bash
d_bash_2504
--- +++ @@ -10,7 +10,7 @@ testquery="${top_builddir}/tests/testquery" if [ -n "$USE_VALGRIND" ] && (type valgrind 1>/dev/null) then - output="`valgrind -q --error-exitcode=1 "$testquery" $arguments`" + output="`valgrind -q --trace-children=yes --error-exitcode=1 "$testquery" $arguments`" else output="`"$testque...
bash
d_bash_2505
--- +++ @@ -8,6 +8,9 @@ : "${STAGING_URL:?Expecting STAGING_URL to be set}" : "${SSH_KEY_PATH:?Expecting SSH_KEY_PATH to be set}" -sudo yum install ansible +# sudo apt-get install software-properties-common -y +# sudo apt-add-repository ppa:ansible/ansible -y +# sudo apt-get update +# sudo apt-get install ansible...
bash
d_bash_2506
--- +++ @@ -9,6 +9,9 @@ git config user.name "Travis CI" ## Change the remote url using the token git remote set-url --push origin https://github.com/punchagan/mumbaiultimate.in.git +## Setup credentials +git config credential.helper "store --file=.git/credentials" +echo "https://${GH_TOKEN}:@github.com" > .git/cr...
bash
d_bash_2507
--- +++ @@ -6,10 +6,11 @@ #the following should work on linux if [[ -x `which md5sum` ]]; then RESULT=`echo ${md5url} | md5sum |cut -d " " -f 1` - #the following should work on Mac OS X elif [[ -x `which md5` ]]; then RESULT=`echo ${md5url} | md5` + else + echo "MD5 cannot be calculated for ${m...
bash
d_bash_2508
--- +++ @@ -23,4 +23,4 @@ LOCDIR="$(dirname $(readlink -f $0))" BUILDDIR="$(readlink -f "$LOCDIR/../../_build")" export OASIS_GETTEXT_DIR="$BUILDDIR/po" -exec "$BUILDDIR/src/OASIS" "$@" +exec "$BUILDDIR/src/cli/OASIS" "$@"
bash
d_bash_2509
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -SVN_REVISION=316462 +SVN_REVISION=316730 SRCDIR=freebsd JFLAG=$(sysctl -n kern.smp.cpus)
bash
d_bash_2510
--- +++ @@ -1,6 +1,8 @@ #!/bin/bash set -e + +rm -rf build npm version minor git checkout production
bash
d_bash_2511
--- +++ @@ -14,7 +14,7 @@ cd build # GCC build. -cmake ../ -DCMAKE_CXX_STANDARD=14 -DCMAKE_BUILD_TYPE=Debug -DMPPP_BUILD_TESTS=YES -DMPPP_WITH_MPFR=yes -DMPPP_WITH_QUADMATH=yes -DCMAKE_CXX_FLAGS="--coverage -fconcepts -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC" +cmake ../ -DCMAKE_CXX_STANDARD=14 -DCMAKE_BUILD_TYP...
bash
d_bash_2512
--- +++ @@ -25,6 +25,13 @@ fi rm -rf "${jet_source}" +if [ "${CI_BRANCH}" = "master" ]; then + log "Preparing for move to documentation.codeship.com" + log "Building with base URL /" + sed -i'' -e "s|^baseurl:.*|baseurl: /|" _config.yml + bundle exec jekyll build --destination "/site/" +fi + # Compile the site ...
bash
d_bash_2513
--- +++ @@ -11,7 +11,7 @@ pushd build # Do a minimal build with as little as possible to get the python modules -CC=gcc-6 CXX=g++-6 cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_GL=OFF -DENABLE_VULKAN=OFF -DENABLE_RENDERDOCCMD=OFF -DENABLE_QRENDERDOC=OFF .. +CC=gcc-6 CXX=g++-6 cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_GL...
bash
d_bash_2514
--- +++ @@ -18,10 +18,15 @@ # Install Home Assistant python3 -m venv /srv/homeassistant && \ chown -R homeassistant:homeassistant /srv/homeassistant && \ - su homeassistant -s /bin/bash -c " source /srv/homeassistant/bin/activate && pip3 install homeassistant==${HOME_ASSISTANT_VERSION}" && \ + su homeassistant...
bash
d_bash_2515
--- +++ @@ -23,7 +23,8 @@ JAVA_OPTIONS="-server -showversion -XX:+AggressiveOpts -Xmx2g -Xms2g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+CMSScavengeBeforeRemark -XX:+DisableExpli...
bash
d_bash_2516
--- +++ @@ -1,4 +1,12 @@ #!/bin/sh + +RBENV_VERSION=trunk-modified ruby extconf.rb +mkae clean; make +RBENV_VERSION=trunk-modified ruby -I lib -I. sample/sgetest.rb + +RBENV_VERSION=trunk-modified ruby extconf.rb --enable-imported-sge +mkae clean; make +RBENV_VERSION=trunk-modified ruby -I lib -I. sample/sgetest.rb ...
bash
d_bash_2517
--- +++ @@ -17,11 +17,13 @@ # Check Out svns cd $HOME + rm -rf trunk tutorial-apps traces svn co http://compss.bsc.es/svn/compss/framework/trunk trunk --username $svnUser svn co http://compss.bsc.es/svn/bar/tutorial-apps/ tutorial-apps --username $svnUser svn co http://compss.bsc.es/svn/bar/traces t...
bash
d_bash_2518
--- +++ @@ -31,3 +31,6 @@ alias pg-stop='pg_ctl -D /usr/local/var/postgres stop -s -m fast' alias bower='noglob bower' + +alias pc='pbcopy' +alias pb='pbpaste'
bash
d_bash_2519
--- +++ @@ -5,8 +5,7 @@ # Add the openc_bot to the Gemfile: if [ ! -f Gemfile ]; then echo "source 'https://rubygems.org'" >> Gemfile - #echo "gem 'openc_bot', :git => 'https://github.com/openc/openc_bot.git'" >> Gemfile - echo "gem 'openc_bot', :path => '/home/seb/Code/openc_bot'" >> Gemfile + echo "gem 'ope...
bash
d_bash_2520
--- +++ @@ -3,6 +3,7 @@ set -e uname -a +which ${CC} ${CC} --version python --version pip --version
bash
d_bash_2521
--- +++ @@ -1,3 +1,3 @@ atdgen -t telegram.atd &&\ -atdgen -j telegram.atd &&\ +atdgen -j -j-std telegram.atd &&\ corebuild server.byte -pkg async,atdgen,cohttp.async,core,yojson
bash
d_bash_2522
--- +++ @@ -21,7 +21,9 @@ for al in `_git_aliases`; do if [ $al != "pr" ]; then alias g$al="git $al" - complete_func=_git_$(__git_aliased_command $al) - function_exists $complete_fnc && __git_complete g$al $complete_func + if [ "$(__git_aliased_command $al)" != "" ]; then + complete_func=_git_$...
bash
d_bash_2523
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash if [ ${TRAVIS_PULL_REQUEST} = 'false' ] && [ ${TRAVIS_BRANCH} = 'develop' ]; then - ./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" build uploadArchives -x functionalTest + ./gradlew uploadArchives -x functionalTest -PossrhUsername="${S...
bash
d_bash_2524
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -export DJANGO_SETTINGS_MODULE=settings.core.test_${USER} +export DJANGO_SETTINGS_MODULE=core.settings.test_${USER} coverage run manage.py test $@
bash
d_bash_2525
--- +++ @@ -2,19 +2,11 @@ set -eux set -o pipefail -readonly backup_dir="$(mktemp -d)/$(date +'%Y-%m-%d')" - -mkdir "$backup_dir" -cd "$HOME/documents/games/minecraft-servers/$1" +cd "$HOME/documents/games/minecraft-servers/$1/backups" echo "Backing up Minecraft server '$1'..." -rsync \ - -vrtpAXl \ - -zz \ - ...
bash
d_bash_2526
--- +++ @@ -18,4 +18,5 @@ rvm gemset use global # Install system-wide gems +gem install bundler gem install pry
bash
d_bash_2527
--- +++ @@ -10,8 +10,8 @@ mkdir -p $HOME/.bitcoin bitcoind 2>&1 | grep "^rpc" > $HOME/.bitcoin/bitcoin.conf fi - if [ ! -e "$HOME/.bitcoin/bootstrap.dat" ] && [ ! -e "$HOME/.bitcoin/bootstrap.dat.old" ]; then - aria2c --dir=$HOME/.bitcoin/bootstrap.dat --seed-time=0 --follow-torrent=mem http:...
bash
d_bash_2528
--- +++ @@ -1,4 +1,6 @@ #!/usr/bin/env bash + +VENV=venv/bin/ # Clean old build. rm -rf dist conductor.pyz @@ -6,5 +8,5 @@ # Put all the code in dist. pip install . -r requirements.txt --target dist/ -shiv --site-packages dist --compressed \ +${VENV}shiv --site-packages dist --compressed \ -p '/usr/bin/...
bash
d_bash_2529
--- +++ @@ -9,8 +9,16 @@ NGINX_MAX_UPLOAD_SIZE=${NGINX_MAX_UPLOAD_SIZE:-200m} # Stop and remove redmine container. -docker stop ${REDMINE_NAME} -docker rm -v ${REDMINE_NAME} +if [ -z "$(docker ps -a | grep ${REDMINE_VOLUME})" ]; then + echo "${REDMINE_VOLUME} does not exist." + exit 1 +elif [ -z "$(docker ps -a...
bash
d_bash_2530
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.15" +version="20.10.16" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_2531
--- +++ @@ -8,6 +8,7 @@ nvm install stable nvm alias default stable +# NOTE: the following is already in `custom/100_init.zsh` # Ensure the following is in ~/.bash_profile, ~/.zshrc or ~/.profile # export NVM_DIR="$HOME/.nvm" # [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
bash
d_bash_2532
--- +++ @@ -23,10 +23,17 @@ then ./setup.sh fi + set +e docker build -t $PROJECT_NAME.deploy.$envName:$SHA1 . + BUILD_SUCCESS=$? if [ -e teardown.sh ] then ./teardown.sh fi + set -e + if [ $BUILD_SUCCESS != 0 ] + then + exit 1 + fi cd ../.. done
bash
d_bash_2533
--- +++ @@ -1,7 +1,7 @@ #! /bin/bash find ./ -type f -name "*.pyc" -exec rm {} \; -rm -rf ./google-breakpad/ ./builds/ ./breakpad/ ./stackwalk +rm -rf ./google-breakpad/ ./build/ ./breakpad/ ./stackwalk pushd minidump-stackwalk make clean
bash
d_bash_2534
--- +++ @@ -11,7 +11,7 @@ # Summary ./paleo.sh summary $NET_FILE >> $OUT_FILE -echo '\n\n' >> $OUTFILE +echo '\n\n' >> $OUT_FILE # Scalability simulation. ./paleo.sh simulate $NET_FILE \ @@ -23,7 +23,7 @@ --ppp_comm=$PPP_COMM \ --scaling=strong >> $OUT_FILE -echo '\n' >> $OUTFILE +echo '\n' >> $OU...
bash
d_bash_2535
--- +++ @@ -1,15 +1,49 @@ #!/bin/bash -if [[ $# -eq 0 ]]; then -echo "Usage: $0 <db_name>" -exit 1 +############################################################################### +# Create MySQL Database +############################################################################### + +## MySQL Database name +MYSQ...
bash
d_bash_2536
--- +++ @@ -7,25 +7,25 @@ _output_ps1() { # Output color variables - local color_green='\[\e[1;32m\]' + local color_blue='\[\e[1;34m\]' local color_white='\[\e[1;37m\]' local color_reset='\[\e[0m\]' # Output name of current working dir (with ~ denoting HOME) - echo -n "${color_green}\W${color_white} : " ...
bash
d_bash_2537
--- +++ @@ -4,6 +4,7 @@ fi PATH="~/bin:$PATH" +PATH=".git/safe/../../bin:$PATH" PATH="/usr/local/heroku/bin:$PATH" PATH="/usr/local/share/npm/bin:$PATH" PATH="/usr/local/bin:/usr/local/sbin:$PATH"
bash
d_bash_2538
--- +++ @@ -8,7 +8,7 @@ git clone git://github.com/facebook/hhvm.git cd hhvm export HPHP_HOME=`pwd` - git checkout 1da451b # Tag:3.0.1 + #git checkout 1da451b # Tag:3.0.1 cd .. git clone https://github.com/mongofill/mongofill-hhvm
bash
d_bash_2539
--- +++ @@ -3,7 +3,7 @@ case "$1" in java8) - echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u275b01.tar.gz" + echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u282b...
bash
d_bash_2540
--- +++ @@ -1,4 +1,7 @@ #! /usr/bin/env bash + +# Remove un-needed files +rm -rf ./**/__pycache__ # Compress all the example directories in .zip files to be uploaded for a release mkdir ./dist
bash
d_bash_2541
--- +++ @@ -9,6 +9,9 @@ diff -u -I '^make' -I '^Makefile:' $i $testfile ec=$? error=$((error|ec)) + if [[ $ec -ne 0 ]] && [[ -n "$REBUILD" ]]; then + cp $i $testfile + fi done; rm -rf $(readlink -f test.latest)
bash
d_bash_2542
--- +++ @@ -5,7 +5,7 @@ # Joseph Jon Booker <joe@neoturbine.net> # -if [[ -s /etc/zsh_command_not_found ]]; then - source /etc/zsh_command_not_found +if [[ -s '/etc/zsh_command_not_found' ]]; then + source '/etc/zsh_command_not_found' fi
bash
d_bash_2543
--- +++ @@ -3,8 +3,9 @@ # pull down the Elasticsearch mapping from an index PORT=${1:-9200} -INDEX=${2:-ronbo} +INDEX=${2:-adp-assets} TYPE=${3:-asset} -CMD="http localhost:${PORT}/${INDEX}/${TYPE}/_mapping" -echo ${CMD} -${CMD} +#CMD="http localhost:${PORT}/${INDEX}/${TYPE}/_mapping" +CMD="curl --silent http://...
bash
d_bash_2544
--- +++ @@ -15,11 +15,7 @@ brew install pandoc brew install python python3 brew install rbenv ruby-build -brew install sqlite -brew install tmux reattach-to-user-namespace --wrap-pbcopy-and-pbpaste brew install tree -brew install vim --with-python3 --with-ruby --override-system-vi -brew install zsh # Casks br...
bash
d_bash_2545
--- +++ @@ -5,8 +5,6 @@ set -e mkdir -p ~/Pictures/Wallpapers/ -mv ~/Downloads/*_*_*x*.jpg ~/Pictures/Wallpapers/ - cd ~/Pictures/Wallpapers/ autoload zmv -zmv -v '*_(*)_*x*.jpg' '$1.jpg' +zmv -v ~/Downloads/'*_(*)_*x*'.jpg ~/Pictures/Wallpapers/'$1'.jpg
bash
d_bash_2546
--- +++ @@ -20,7 +20,7 @@ echo "Dumping database $database_name to file $backup_file_name" -if [ $(pg_dump -f "$backup_file_name" "$database_name") ]; then +if [ $(pg_dump -a -f "$backup_file_name" "$database_name") ]; then echo "pg_dump failed, deleting file. Exiting." rm "$backup_file_name" retu...
bash
d_bash_2547
--- +++ @@ -1,2 +1,10 @@ #!/bin/bash -g++ -arch ppc -arch i386 -arch x86_64 -o ldid ldid.cpp -I. -x c lookup2.c sha1.c + +flags=() + +sdk=/Developer/SDKs/MacOSX10.4u.sdk +if [[ -e $sdk ]]; then + flags+=(-mmacosx-version-min=10.4 -isysroot "$sdk") +fi + +g++ -arch ppc -arch i386 -arch x86_64 "${flags[@]}" -o ldid...
bash
d_bash_2548
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -e -export GOPATH="`pwd`:$GOPATH" +export GOPATH="$GOPATH:`pwd`" echo '--- go version' go version
bash
d_bash_2549
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.6" +version="20.10.7" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_2550
--- +++ @@ -1,7 +1,17 @@ #!/bin/sh -e -# Format output of printenv for legibility -# BUG: Values that contain the delimeter `=' are cut off prematurely. +# +# Summary +# penv.sh - format output of core utility printenv for legibility. +# +# Usage +# ./penv.sh +# +# BUGS +# * Values that contain the delime...
bash
d_bash_2551
--- +++ @@ -17,7 +17,8 @@ set -x bosh upload-blobs - bosh finalize-release --version $FULL_VERSION + bosh create-release --tarball=/tmp/bosh-dev-release.tgz --timestamp-version --force + bosh finalize-release --version $FULL_VERSION /tmp/bosh-dev-release.tgz git add -A git status
bash
d_bash_2552
--- +++ @@ -1,11 +1,16 @@ #!/usr/bin/env bash cd $(dirname $0) -[ -z $SNABB_PCI_INTEL1G0 ] && exit $TEST_SKIPPED -[ -z $SNABB_PCI_INTEL1G1 ] && exit $TEST_SKIPPED -[ -z $SNABB_PCI_INTEL0 ] && exit $TEST_SKIPPED -[ -z $SNABB_PCI_INTEL1 ] && exit $TEST_SKIPPED +if [ $SNABB_PCI_INTEL1G0 ] && [ $SNABB_PCI_INTEL1G1 ]; t...
bash
d_bash_2553
--- +++ @@ -1,5 +1,6 @@ set -xe +apt-get update; apt-get install -y gcc g++ conda config --set always_yes yes --set changeps1 no conda update -q conda conda config --add channels conda-forge
bash
d_bash_2554
--- +++ @@ -6,6 +6,7 @@ export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH" fi +alias ls="ls -G --color --time-style=long-iso" alias la="ls -la" # Kind of like 'la', but with permissions displayed in octal. Doesn't work # great.
bash
d_bash_2555
--- +++ @@ -5,10 +5,5 @@ -D pagerank.damping_factor=0.85 \ -D pagerank.max_iterations=2 \ -D pagerank.top_results=100 \ - -D yarn.am.liveness-monitor.expiry-interval-ms=3600000 \ - -D yarn.nm.liveness-monitor.expiry-interval-ms=3600000 \ - -D yarn.resourcemanager.container.liveness-monitor.int...
bash
d_bash_2556
--- +++ @@ -3,7 +3,7 @@ if ! which xcodebuild &> /dev/null; then echo "You need to install the Xcode Command Line Tools before running this script" - exit + return fi ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" & @@ -11,7 +11,7 @@ if [[ ! -e "manage.sh" ]]; then echo "Mak...
bash
d_bash_2557
--- +++ @@ -28,7 +28,7 @@ cd "${REPOROOT}" # Test phases: -run_test_phase "${REPOROOT}/qa/zerocash/ensure-no-dot-so-in-depends.py" +run_test_phase "${REPOROOT}/qa/zcash/ensure-no-dot-so-in-depends.py" # If make check fails, show test-suite.log as part of our run_test_phase # output (and fail the phase with fa...
bash
d_bash_2558
--- +++ @@ -3,16 +3,42 @@ # load_gpio.sh - Load Raspberry Pi GPIO/therm modules to kernel # # Note - this script must be run as root: -# sudo load_gpio_therm_modules.sh +# sudo load_gpio.sh # # Tom Holderness 03/01/2013 +# Tarcio Saraiva 14/03/2014 # # Ref: http://www.cl.cam.ac.uk/freshers/raspberrypi/tutoria...
bash
d_bash_2559
--- +++ @@ -6,5 +6,8 @@ AWS_ACCESS_SECRET=`/usr/bin/etcdctl get /_arken.io/config/aws/secret` AWS_REGION=`/usr/bin/etcdctl get /_arken.io/config/s3/region` PREFIX=`/usr/bin/etcdctl get /_arken.io/key` +CURSOR_PATH=/data/journald -exec docker run --name journald-wrapper -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_ID -e AWS_...
bash
d_bash_2560
--- +++ @@ -4,7 +4,7 @@ rust_ios_install() { ios_stdlib="rust-std-nightly-${1}-apple-ios" - curl -O "http://static.rust-lang.org/dist/${ios_stdlib}.tar.gz" + curl -O "https://static.rust-lang.org/dist/${ios_stdlib}.tar.gz" tar xzf "${ios_stdlib}.tar.gz" "./${ios_stdlib}/install.sh" --prefix=$(...
bash
d_bash_2561
--- +++ @@ -6,7 +6,11 @@ zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r' zstyle ':vcs_info:*' enable git svn precmd () { - zstyle ':vcs_info:*' formats '%b%c%u ' + if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] { + zstyle ':vcs_info:*' formats '%b%c%u ' + } else { + ...
bash
d_bash_2562
--- +++ @@ -25,3 +25,6 @@ EOF update-grub + +# Correct stdin: is not a tty +sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile
bash
d_bash_2563
--- +++ @@ -5,12 +5,12 @@ here="$(dirname "$BASH_SOURCE")" cd "$here" +# First let's get the index clean from other files that CI runs +git add -A ./ ../go/ ../shared/ + npm i make clean make - -# First let's get the index clean from other files that CI runs create. -git add -A ./ ../go/ ../shared/ # Protoc...
bash
d_bash_2564
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash git checkout gh-pages git reset --hard master -git push origin gh-pages +git push -f origin gh-pages git checkout master
bash
d_bash_2565
--- +++ @@ -4,6 +4,7 @@ # Authors: # Florian Walch <florian.walch@gmx.at> # Sorin Ionescu <sorin.ionescu@gmail.com> +# neersighted <neersighted@myopera.com> # # Return if requirements are not found. @@ -11,7 +12,8 @@ return 1 fi -_gpg_env="$HOME/.gnupg/gpg-agent.env" +# Make sure to use the $GNUPGH...
bash
d_bash_2566
--- +++ @@ -27,3 +27,5 @@ node-deb --verbose \ -- node-deb templates/ apt-get purge -y node-deb + +[ ! -d "/usr/share/node-deb" ] || die "Can't remove /usr/share/node-deb"
bash
d_bash_2567
--- +++ @@ -6,7 +6,7 @@ ./mvnw -DskipTests package cd ${workdir}/sts4/headless-services/jdt-ls-extension -./mvnw -DskipTests package +../mvnw -DskipTests package timestamp=`date +%s` tarfile=${workdir}/out/sts4-mvn-cache-${timestamp}.tar.gz
bash
d_bash_2568
--- +++ @@ -1,13 +1,9 @@ #!/bin/bash -RETCODE=$(fw_exists ${IROOT}/nvm-0.24.1.installed) +RETCODE=$(fw_exists ${IROOT}/nvm.installed) [ ! "$RETCODE" == 0 ] || { return 0; } -# Install nvm (node version manager) v0.24.1 -fw_get https://raw.githubusercontent.com/creationix/nvm/v0.24.1/install.sh | \ - NVM_DIR=${...
bash
d_bash_2569
--- +++ @@ -2,14 +2,5 @@ source $KOKORO_GFILE_DIR/secrets.sh -sudo apt-get update -sudo apt-get install realpath wget -wget https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 - -# Unsure about the following section because of Ruby image -mv cloud_sql_proxy.linux.amd64 $HOME/cloud_sql_proxy -chmod +x $HOM...
bash
d_bash_2570
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env bash + +# On GPU workers, environment variables needed to set up CUDA properly are +# written to the profile, so make sure those variables actually get loaded. +source ~/.profile cd ../../environment make -j2
bash
d_bash_2571
--- +++ @@ -39,7 +39,7 @@ coverage xml --include="go/*" coverage html --include="go/*" -(find ./go -name '*.py' | xargs pep8 --repeat --exclude='0*' > pep8.log || true) && \ +(find ./go -name '*.py' | xargs pep8 --repeat --exclude='0*' --ignore=E121,E123,E126,E127,E128 > pep8.log || true) && \ cat pep8.log de...
bash
d_bash_2572
--- +++ @@ -5,7 +5,7 @@ } function install_centos(){ - sudo yum install -i python-dev libffi-dev python-pip + sudo yum -y install python-dev libffi-dev python-pip }
bash
d_bash_2573
--- +++ @@ -15,6 +15,7 @@ yum -y install docker-engine epel-release git python-pip # Start services +systemctl enable docker systemctl start docker # Fetch and install pip packages
bash
d_bash_2574
--- +++ @@ -23,10 +23,9 @@ git co master git cherry-pick $SHA - MSG=$(git log --format=%B -n 1) git reset HEAD~ git add . - git ci -m $MSG + git ci -C $SHA git co $1 git rebase master
bash
d_bash_2575
--- +++ @@ -1,5 +1,6 @@ #!/usr/bin/env bash +# Stolen from https://gist.github.com/pkuczynski/8665367 shamelessly by Yi. function parse_yaml() { local yaml=$1 local prefix=$2
bash
d_bash_2576
--- +++ @@ -36,6 +36,7 @@ cp $src/LICENSE $dest cp -r $src/locale $dest cp -r $src/min $dest +cp -r $src/src $dest && rm -r $dest/src/test cp $src/ender.js $dest cp $src/package.js $dest cp $src/.npmignore $dest
bash
d_bash_2577
--- +++ @@ -25,6 +25,8 @@ package_binary Boxer package_binary Gleam package_binary Glutin +package_binary Winit +package_binary Metal package_binary Clipboard package_binary Skia
bash
d_bash_2578
--- +++ @@ -3,6 +3,9 @@ git stash && \ git fetch --all --prune --verbose && \ git checkout -qf master && \ +TAG="$(git describe --abbrev=0 --tags)" && \ +npm config set git-tag-version false && \ +npm version "$TAG-dev.$TRAVIS_BUILD_NUMBER" && \ git merge --no-commit --no-ff $TRAVIS_COMMIT && \ git add --force l...
bash
d_bash_2579
--- +++ @@ -14,7 +14,11 @@ if ! python -c "import google.protobuf.text_format"; then cd $HOME/protobuf/protobuf-2.6.1/python; - python setup.py install --cpp_implementation --user; + if [ -f "dist/protobuf-2.6.1-py2.7-linux-x86_64.egg" ]; then + python -m easy_install --user dist/protobuf-2.6.1-p...
bash
d_bash_2580
--- +++ @@ -14,6 +14,12 @@ function get_env_name () { local forced_env=${CR_ENVIRONMENT_SELECTION:-xxx} if [ "$forced_env" != "xxx" ]; then + echo $forced_env + return + fi + + if [ -f $HOME/.zsh-env-name ]; then + forced_env=$(cat $HOME/.zsh-env-name) echo $forced_env ...
bash
d_bash_2581
--- +++ @@ -6,12 +6,11 @@ # the variable is "true", then the wait file will be created and the script will # wait for as long as it exists. -if [ "$(eval echo \"\$$1\")" != "true" ]; then - exit 0 +if [ "$(eval echo \"\$$1\")" = "true" ]; then + touch "$2" fi -touch "$2" -echo "$1 == true. Waiting indefi...
bash
d_bash_2582
--- +++ @@ -1,6 +1,8 @@ #!/bin/sh /opt/Upsource/bin/upsource.sh configure \ + --listen-port=8080 \ + --base-url=$UPSOURCE_BASE_URL \ --logs-dir=$UPSOURCE_LOGS_DIR \ --temp-dir=$UPSOURCE_TEMP_DIR \ --data-dir=$UPSOURCE_DATA_DIR \
bash
d_bash_2583
--- +++ @@ -13,6 +13,11 @@ pkg_include_dirs=(include Include) pkg_interpreters=(bin/python bin/python3 bin/python3.5) +do_prepare() { + sed -i.bak 's/#zlib/zlib/' Modules/Setup.dist + sed -i -re "/(SSL=|_ssl|-DUSE_SSL|-lssl).*/ s|^#||" Modules/Setup.dist +} + do_build() { ./configure --prefix=${pkg_pr...
bash
d_bash_2584
--- +++ @@ -3,13 +3,13 @@ cd frontend npm install -typings install +node_modules/.bin/typings install jspm cc jspm install -y cd ../backend npm install -typings install +node_modules/.bin/typings install gulp serve & cd ../tests
bash
d_bash_2585
--- +++ @@ -2,11 +2,11 @@ COV=$(coverage report | tail -n 1 | rev | cut -f 1 -d " " | rev) -if [[ $COV < "50%" ]] ; then +if [[ $COV < '50%' ]] ; then COLOUR=red; -elif [[ $COV < "75%" ]] ; then +elif [[ $COV < '75%' ]] ; then COLOUR=orange ; -elif [[ $COV < "90%" ]] ; then +elif [[ $COV < '90%' ]] ; then ...
bash
d_bash_2586
--- +++ @@ -2,6 +2,7 @@ clearStore +# Create the binary cache. cacheDir=$TEST_ROOT/binary-cache rm -rf $cacheDir @@ -9,9 +10,11 @@ nix-push --dest $cacheDir $outPath +# Check that downloading works. clearStore +rm -f $NIX_STATE_DIR/binary-cache* -rm -f $NIX_STATE_DIR/binary-cache* +NIX_BINARY_CACHES=...
bash
d_bash_2587
--- +++ @@ -12,17 +12,16 @@ DOTNET_TEST_ARGS="--no-build $DOTNET_BUILD_ARGS" echo CLI args: $DOTNET_BUILD_ARGS -echo Current working directory: $PWD echo Restoring -dotnet restore -v minimal ./Gax.sln +dotnet restore -v minimal Gax.sln echo Building -dotnet build $DOTNET_BUILD_ARGS ./Gax.sln +dotnet build $...
bash
d_bash_2588
--- +++ @@ -1,4 +1,7 @@ #!/usr/bin/env bash source db_settings.env -psql -f mapview_24h_clustered.sql | aws s3 cp - "${EXPORT_TARGET}"/json/view24h.json --acl public-read +psql -q -f mapview_24h_clustered.sql |\ + aws s3 cp - "${EXPORT_TARGET}"/json/view24h.json \ + --acl public-read \ + --cache-control "max-a...
bash
d_bash_2589
--- +++ @@ -37,7 +37,7 @@ fi rm -rf target -./gradlew build +./gradlew compileJava ret=$? if [ $ret -ne 0 ]; then exit $ret
bash
d_bash_2590
--- +++ @@ -9,7 +9,7 @@ for host in $HOSTS; do for other in $HOSTS; do if [ "$host" != "$other" ]; then - run_on $host $PING $other & + echo $(run_on $host $PING $other) & pids="$pids $!" fi done
bash
d_bash_2591
--- +++ @@ -5,4 +5,4 @@ sudo brew tap homebrew/versions sudo brew install --enable-cxx gcc5 -brew install boost +brew outdated boost || brew upgrade boost
bash
d_bash_2592
--- +++ @@ -36,6 +36,7 @@ } BuildExample() { + echo "@@@BUILD_STEP $NACL_PACKAGES_BITSIZE-bit $2@@@" readonly CURR_DIR=$(cd "$(dirname "$0")" ; pwd) cd ../examples/$1 if ./nacl-$2.sh ; then
bash
d_bash_2593
--- +++ @@ -7,4 +7,4 @@ CONTAINER_IP_ADDR=$(ip -4 addr show scope global dev "${MAYA_API_SERVER_NETWORK}" | grep inet | awk '{print $2}' | cut -d / -f 1) # Start apiserver service -exec /usr/local/bin/maya-apiserver start -bind="${CONTAINER_IP_ADDR}" 1>&2 +exec /usr/local/bin/maya-apiserver start --bind="${CONTAI...
bash
d_bash_2594
--- +++ @@ -33,13 +33,15 @@ npm run doc log "Publishing artefacts to GitHub Pages" + echo "rm -r gh-pages/*" + rm -r gh-pages/* echo "mv -f dist/doc gh-pages" mv -f dist/doc/* gh-pages cd gh-pages git add --all git commit --quiet --message "$GITHUB_PAGES_COMMIT_MESSAGE" - git push --force ...
bash
d_bash_2595
--- +++ @@ -1,5 +1,12 @@ -#!/bin/sh -v +#!/bin/sh # Runs type factories generator for test files. + +if [ -z "$DART_SDK" ]; then + echo "ERROR: You need to set the DART_SDK environment variable to your dart sdk location" + exit 1 +fi + +set -v dart bin/generator.dart $DART_SDK test/main.dart di.tests.Inject...
bash
d_bash_2596
--- +++ @@ -28,7 +28,7 @@ NEWHOSTNAME=${ENV}-${ROLE}-${INSTANCEID} /bin/echo ${NEWHOSTNAME} > /etc/hostname /bin/hostname -F /etc/hostname - service restart rsyslog + /usr/sbin/service rsyslog restart } # Required variables will be inserted by Terraform.
bash
d_bash_2597
--- +++ @@ -11,18 +11,18 @@ # agvtool function version() { agvtool_path=$(which agvtool) # "/usr/bin/agvtool" - build_version=$(agvtool what-version -terse) - market_version=$(agvtool what-marketing-version -terse1) case "$1" in - build) - echo "$build_version" + "build" | "-b") + agvtool what-ver...
bash
d_bash_2598
--- +++ @@ -1,41 +1,39 @@ -#!/bin/sh +#!/bin/bash fail() { - echo -e '[\e[1;31mFAIL\e[0m] '$i: $@ + echo -e '[\e[1;31mFAIL\e[0m] '"$i:" "$@" exit 1 } pass() { - echo -e '[\e[0;32mPASS\e[0m] '$i + echo -e '[\e[0;32mPASS\e[0m] '"$i" } check_expected() { - [ -z $1 ] && echo WARN: check_expected called ...
bash
d_bash_2599
--- +++ @@ -35,5 +35,5 @@ display_result $? 2 "Front end code style check" ## Code coverage -py.test -n4 --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml --strict +py.test -n4 -x --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml --strict display_result $? 3 "Code covera...
bash