document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_11100
--- +++ @@ -3,6 +3,7 @@ echo "Preparing server for running all in one cluster" echo "Installing docker" yum install -y docker wget +sed $'s/OPTIONS=\''/OPTIONS=\''--insecure-registry 172.30.0.0\/16 /' /etc/sysconfig/docker systemctl enable docker systemctl start docker cd
bash
d_bash_11101
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.11" +version="20.10.12" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_11102
--- +++ @@ -3,4 +3,4 @@ cd template haxe template.hxml cd ../test -haxe BelugaTest.hxml && sudo cp -r ./bin/php/* /var/www/html/ +haxe BelugaTest.hxml
bash
d_bash_11103
--- +++ @@ -1,5 +1,8 @@ #!/usr/bin/env bash +rm -r coverage +set -e nosetests -v --with-coverage --cover-inclusive --cover-erase --cover-html --cover-html-dir=./coverage --cover-package=gglsbl3 --with-html-report --html-output-file ./coverage/report.html chromium-browser --new-window chromium-browser ./coverage/...
bash
d_bash_11104
--- +++ @@ -6,6 +6,9 @@ # don't rely on Debian/Ubuntu Docker engine apt-get remove docker-engine +# make sure we start from scratch +pip uninstall docker-py +pip uninstall docker set -e set -x
bash
d_bash_11105
--- +++ @@ -26,3 +26,5 @@ --remote=http://localhost:8001\ &> ${TESTTMP}/josh-proxy.out& echo $! > ${TESTTMP}/proxy_pid + +sleep 1
bash
d_bash_11106
--- +++ @@ -1,9 +1,13 @@ # Add package as a "linked" package to force +echo "" +echo "Linking $1" npx yalc add $1 # Try to install force's dependencies (retry if it fails) +echo "" +echo "Installing dependencies" n=0 until [ $n -ge 3 ] do @@ -15,6 +19,8 @@ sleep 1 done +echo "" +echo "Beginning serv...
bash
d_bash_11107
--- +++ @@ -3,7 +3,7 @@ ## Setup GPG echo Installing .gnupg chmod go-rwx gnupg -ln -sf $(pwd)/gnupg ~/.gnupg +ln -Tsf $(pwd)/gnupg ~/.gnupg ## Install each _-prefixed file find -regex "./_.*" -type f -print0 | sort -z | while read -d $'\0' file
bash
d_bash_11108
--- +++ @@ -7,10 +7,10 @@ touch $1 echo "- hosts: localhost" >> $1 echo " connection: local" >> $1 - echo " vars:" >> $1 echo " roles:" >> $1 echo " - role: ansible-galaxy-tools" >> $1 echo " galaxy_tools_galaxy_instance_url: http://$host:$port/" >> $1 echo " ...
bash
d_bash_11109
--- +++ @@ -5,4 +5,4 @@ #git clone git://github.com/Yuav/logstash-packaging.git --depth=1 wget http://logstash.objects.dreamhost.com/release/logstash-${VERSION}-monolithic.jar -O $CURRENT_DIR/usr/share/logstash/logstash.jar #wget https://logstash.objects.dreamhost.com/release/logstash-${VERSION}-flatjar.jar -fpm -...
bash
d_bash_11110
--- +++ @@ -6,11 +6,6 @@ # # https://golang.org/ ############################################################################### - -# homebrew-install GOROOT -export GOROOT=/usr/local/opt/go/libexec -# Add GOROOT bin to path -PATH=$PATH:$GOROOT/bin # $GOPATH #
bash
d_bash_11111
--- +++ @@ -21,6 +21,7 @@ require bison require flex require jansson +require lz4 mkdir -p $INSTALL_PREFIX @@ -32,4 +33,4 @@ git checkout v${VERSION} source source_me.sh -make static +make
bash
d_bash_11112
--- +++ @@ -7,7 +7,11 @@ ## # if go is installed export GOPATH -if [[ ( -e `which go` && -e "$HOME/go" ) ]]; then export GOPATH=$HOME/go && export PATH="$GOPATH/bin:$PATH"; fi +if [[ ( -e `which go` && -e "$HOME/go" ) ]]; then + export GOPATH=$HOME/go + export PATH="$GOPATH/bin:$PATH" + export PATH="$PATH:/usr...
bash
d_bash_11113
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash -PKG_DIR="/home/wkearn/.julia/v0.4" +`julia -e "Pkg.update(); Pkg.clone("https://github.com/wkearn/Kalman.jl"); Pkg.checkout("Kalman","perf")` +PKG_DIR=`julia -e "print(Pkg.dir())"` TEST_DIR="$PKG_DIR/Kalman/test" n=$1 d=`date +%s`
bash
d_bash_11114
--- +++ @@ -11,5 +11,4 @@ envtpl < /etc/burp/burpui.cfg.tpl > /etc/burp/burpui.cfg export LANG='en_US.UTF-8' -#exec /usr/bin/gunicorn -k gevent -w 4 --access-logfile - -b '0.0.0.0:5000' 'burpui:create_app(conf="/etc/burp/burpui.cfg", verbose=3)' exec /usr/bin/gunicorn-3 -k gevent -w 4 --access-logfile - -b '0.0....
bash
d_bash_11115
--- +++ @@ -10,5 +10,6 @@ # Install ruby-build git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build -# Make sure the build-essential pkg is installed -sudo apt-get install -y build-essential +# Make sure the needed pkg is installed +sudo apt-get install -y build-essential bison libr...
bash
d_bash_11116
--- +++ @@ -16,7 +16,12 @@ # restore nuget packages echo // Installing NuGet packages -nuget.exe restore +NUGET=`which nuget.exe` +mono $NUGET restore + +NODEBIN=`which node` +export NODEJS=`dirname $NODEBIN` +echo using node from $NODEJS # build with xna projects disabled echo // Building
bash
d_bash_11117
--- +++ @@ -2,5 +2,9 @@ psql -U postgres -h localhost -c 'CREATE DATABASE sakila;' psql -U postgres -h localhost -d sakila -f ../sakila/postgres-sakila-db/postgres-sakila-schema.sql psql -U postgres -h localhost -d sakila -f ../sakila/postgres-sakila-db/postgres-sakila-data.sql + +psql -U postgres -h localhost -d ...
bash
d_bash_11118
--- +++ @@ -16,7 +16,7 @@ if [ "$1" = 'node' ]; then file_env 'GH_SECRET' file_env 'GH_TOKEN' - file_env 'SLACK_URL' + file_env 'SLACK_URL_SECRET' else echo "Not running node code, exiting..." exit 1
bash
d_bash_11119
--- +++ @@ -4,3 +4,6 @@ # Go binaries (eg, godoc) export PATH=$PATH:/usr/local/opt/go/libexec/bin + +# Uncomitted scripts +export PATH="$HOME/scripts:$PATH"
bash
d_bash_11120
--- +++ @@ -1,9 +1,4 @@ #!/usr/bin/env bash - -# install NFS server and export user home directories -apt-get install -y nfs-kernel-server -echo "/home/shiny *(rw,sync,root_squash)" >> /etc/exports -service nfs-kernel-server start # Create Shiny user useradd -r -m shiny @@ -11,6 +6,11 @@ chown -R shiny:shiny ...
bash
d_bash_11121
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -aclocal +aclocal --force libtoolize --force --automake --copy autoheader --force autoconf --force
bash
d_bash_11122
--- +++ @@ -2,6 +2,7 @@ [ ! -f /config/settings.json ] && { echo "no settings.json found, seeding with defaults..." + mkdir -p /transmission/{config,watch,downloads,incomplete} cp /var/lib/transmission-daemon/settings.json /transmission/config/settings.json }
bash
d_bash_11123
--- +++ @@ -2,7 +2,7 @@ # build config # PACKAGES="" -CLOJURE_VERSION=1.8.0 +CLOJURE_VERSION=1.9.0-alpha10 configure_bob() { wget https://repo1.maven.org/maven2/org/clojure/clojure/${CLOJURE_VERSION}/clojure-${CLOJURE_VERSION}.jar
bash
d_bash_11124
--- +++ @@ -31,4 +31,3 @@ ${SH_DIR}/test_in_containers.sh "${client_user}" "${server_user}" "$@" ${SH_DIR}/containers_down.sh ${SH_DIR}/on_ci_publish_tagged_images.sh -#${SH_DIR}/trigger_dependent_images.sh
bash
d_bash_11125
--- +++ @@ -8,5 +8,5 @@ mvn -Pstandalone test cd $TRAVIS_BUILD_DIR/metaborg-sl/org.metaborg.lang.sl mvn -Pstandalone test -cd $TRAVIS_BUILD_DIR/metaborg-sl/org.metaborg.lang.sl.interpreter +cd $TRAVIS_BUILD_DIR/metaborg-sl/org.metaborg.lang.sl.interp mvn -Pstandalone test
bash
d_bash_11126
--- +++ @@ -31,7 +31,6 @@ VSCODE_DEV=1 \ ELECTRON_ENABLE_LOGGING=1 \ ELECTRON_ENABLE_STACK_DUMPING=1 \ - echo $@ "$ELECTRON" "$CLI" . "$@" }
bash
d_bash_11127
--- +++ @@ -1,4 +1,18 @@ #!/bin/bash +# +# Copyright (c) 2017 mgm technology partners GmbH +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICE...
bash
d_bash_11128
--- +++ @@ -30,6 +30,7 @@ echo Compiling make +make lite echo Testing make covered_test
bash
d_bash_11129
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -#./setup-logentries.sh +./setup-logentries.sh # Try to install composer dev dependencies cd /data/vendor/simplesamlphp/simplesamlphp/modules/silauth
bash
d_bash_11130
--- +++ @@ -10,3 +10,10 @@ # fqdn: gocloud.dev # skip-cleanup: true # local-dir: internal/website/public + +# To do this manually: +# +# Invoke the `hugo` command manually (after installing `hugo`). +# Separately check out the gh-pages branch of this repository. +# Overwrite the contents of the branch with t...
bash
d_bash_11131
--- +++ @@ -4,6 +4,10 @@ # stop machines irrespective of currently running or not, irrespective of node exists or not # since the error messages are redirected to /dev/null + +if [ "$#" -eq 1 ]; then + export NODE_NAME="$1" +fi echo "[$NODE_NAME] - stopping and removing node..." # docker-machine stop "$NODE_N...
bash
d_bash_11132
--- +++ @@ -14,4 +14,4 @@ # Now install the required packages into our fresh installation export PATH=$PWD/texlive/bin/x86_64-linux:$PATH -tlmgr install cmap ec fancybox titlesec framed fancyvrb threeparttable mdwtools wrapfig parskip url multirow inconsolata cabin bbding microtype changepage xcolor mdframed l3ke...
bash
d_bash_11133
--- +++ @@ -7,6 +7,8 @@ do cd /vagrant/www/wordpress-skydreams/domains +mkdir $url -p + cd $url echo $url > vvv-hosts
bash
d_bash_11134
--- +++ @@ -17,6 +17,11 @@ install_packages_if_necessary "gcc" || die "Installing gcc failed" fi +NUM_LOGICAL_CORES="$(getconf _NPROCESSORS_ONLN)" +if ! grep -q "jobs" ~/.cargo/config; then + printf "\n\n[build]\njobs=$NUM_LOGICAL_CORES" >> ~/.cargo/config +fi + # if [ "$(uname -s)" == "Darwin" ]; then #...
bash
d_bash_11135
--- +++ @@ -38,7 +38,7 @@ chmod +x $buildFile # Cleanup - if test ! -d $tempFolder; then + if test -d $tempFolder; then rm -rf $tempFolder fi fi
bash
d_bash_11136
--- +++ @@ -11,6 +11,7 @@ --deb-suggests python3-sqlalchemy \ --deb-suggests python3-psycopg2 \ -d python3 \ + -d python3-pkg-resources \ --force \ jacquard-split
bash
d_bash_11137
--- +++ @@ -1,3 +1,8 @@ +echo "Install Homebrew" +ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + +echo "Install Python" +brew install python + echo "Installing Ansible." -sudo easy_install pip -sudo pip install ansible +pip install ansible
bash
d_bash_11138
--- +++ @@ -1,3 +1,4 @@ cd /usr/local/galaxy/work/galaxy_in_docker_custom_bit_wf/setup_scripts +source /usr/local/galaxy/galaxy-dist/.venv/bin/activate; pip install python-dateutil bioblend pandas grequests GitPython pip-tools python bit-workflow_install_docker.py
bash
d_bash_11139
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.17" +version="20.10.18" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_11140
--- +++ @@ -6,4 +6,4 @@ useradd --shell /bin/bash -u ${USER_ID} -o -c "" -m user export HOME=/home/user -exec /usr/local/bin/gosu user "$@" +exec gosu user "$@"
bash
d_bash_11141
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -webTag="${WEB_TAG:-v0.0.2}" +webTag="${WEB_TAG:-v0.0.3}" realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
bash
d_bash_11142
--- +++ @@ -1,4 +1,6 @@ #!/bin/sh -e + +export AFL_NO_UI=1 cd afl-plugin cargo build --verbose
bash
d_bash_11143
--- +++ @@ -11,6 +11,7 @@ cheatsheet # Hold the ⌘-key to get a list of all active shortcuts for the current application. firefox # Web browser from Mozilla. gas-mask # Manage and switch between multiple hosts files. + gitify # GitHub deskt...
bash
d_bash_11144
--- +++ @@ -8,6 +8,7 @@ docker build -t leonti/receipts-rest-service:$version target/scala-2.11/ docker push leonti/receipts-rest-service git tag -a v$version -m 'new version $version' -#git push --follow-tags + +git push --quiet "https://${TAG_TOKEN}@github.com/Leonti/receipts-rest-service" --follow-tags > /dev/n...
bash
d_bash_11145
--- +++ @@ -9,7 +9,5 @@ alias pyhttp="python -m SimpleHTTPServer" # ruby bundler -if [[ -f $(which bundle) ]]; then - alias b="bundle " - alias be="bundle exec " -fi +alias b="bundle " +alias be="bundle exec "
bash
d_bash_11146
--- +++ @@ -4,7 +4,6 @@ if ! zgen saved; then zgen prezto zgen prezto directory - zgen prezto editor key-bindings 'vi' zgen prezto prompt theme 'pure' zgen prezto git zgen prezto command-not-found
bash
d_bash_11147
--- +++ @@ -3,7 +3,7 @@ GOPATH=`pwd` go build whereismyfox.com/whereismyfox pushd static -zip -f package.zip \ +zip -u package.zip \ index.html \ manifest.webapp \ push.html \
bash
d_bash_11148
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -mkdir logs +mkdir -p logs nohup python wonderbot.py comments > logs/comments_nohup.out 2> logs/comments_nohup.err &
bash
d_bash_11149
--- +++ @@ -12,6 +12,9 @@ exit 1 fi +## Assumes Ubuntu +export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/ + # Install the rest of the modules ./script/run_carton.sh install --deployment
bash
d_bash_11150
--- +++ @@ -24,7 +24,7 @@ ln -s /home/$USER/GoProApp /home/GoProApp rm /etc/apache2/sites-enabled/000-default ln -s /home/GoProApp/GoProApp/apache.conf /etc/apache2/sites-enabled/GoProApp.conf -ln -s /etc/apache2/mods-available/wsgi.* /etc/apache2/mods-enabled/ +a2enmod wsgi service apache2 restart echo "Confi...
bash
d_bash_11151
--- +++ @@ -28,7 +28,7 @@ # Common Xcode project folders alias op='cd ~/dev/ios/Octopad' alias ebw='cd ~/dev/ios/EBW' -alias fk='cd ~/dev/ios/FitnessKit' +alias fk='cd ~/dev/ios/pods/FitnessKit' alias itwire='cd ~/dev/bluemix/ITWire' # Blog main dir
bash
d_bash_11152
--- +++ @@ -13,3 +13,20 @@ # https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md # https://news.ycombinator.com/item?id=11566720 export HOMEBREW_NO_ANALYTICS=1 + +# Caskroom location +# +# The default Caskroom location has moved to /usr/local/Caskroom. There are +# reports of issues with s...
bash
d_bash_11153
--- +++ @@ -2,7 +2,7 @@ cd build #Download and build DSSIM -sudo apt-get install -y pkg-config libpng12-dev +sudo apt-get install -y pkg-config libpng-devel wget https://github.com/pornel/dssim/archive/master.tar.gz tar xvzf master.tar.gz cd dssim-master
bash
d_bash_11154
--- +++ @@ -6,10 +6,13 @@ pip install requests --use-mirrors sudo rabbitmq-plugins enable rabbitmq_stomp ${ROOT}/rabbitmq.py -sudo cp ${ROOT}/extra_cookbooks/rabbitmq_mco/templates/default/ca.pem \ - /opt/rabbitmq/ca.pem -sudo cp ${ROOT}/extra_cookbooks/rabbitmq_mco/templates/default/cert.pem \ - /opt/rabbit...
bash
d_bash_11155
--- +++ @@ -1,11 +1,5 @@ -source `dirname $0`/criu-lib.sh && -prep && -bash test/zdtm.sh -C && -true || fail - -# Execute tests for each new commit -git rev-parse tested || ( git tag tested; exit ) -for i in `git rev-list --reverse tested..HEAD`; do - curl "http://localhost:8080/job/CRIU-by-id/buildWithParameters?...
bash
d_bash_11156
--- +++ @@ -11,7 +11,7 @@ group 'virtualenv' cwd=`basename \`pwd\`` - mkvirtualenv --no-site-packages --distribute $cwd + mkvirtualenv --distribute $cwd } @@ -19,7 +19,7 @@ about 'create a new virtualenv for the current branch' group 'virtualenv' - mkvirtualenv --no-site-packages --distribute ...
bash
d_bash_11157
--- +++ @@ -9,7 +9,7 @@ exit 0 fi -SUPPORTED_KUBE_VERSIONS="0.14.0" +SUPPORTED_KUBE_VERSIONS="0.13.2" TEST_NAMESPACE="default" cd integration
bash
d_bash_11158
--- +++ @@ -2,10 +2,14 @@ set -x (git rev-parse HEAD ; git describe) 2> /dev/null > src/githash +if [ ! -d "config" ] ; then +mkdir config +fi aclocal -I config #autoheader libtoolize --automake -touch AUTHORS ChangeLog +touch AUTHORS +touch ChangeLog automake --add-missing --copy autoconf
bash
d_bash_11159
--- +++ @@ -1,6 +1,8 @@ export HOMEBREW_CASK_OPTS="--appdir=/Applications" +export ALLOW_UNSUPPORTED_XCODE=1 export HOMEBREW_NO_ANALYTICS=1 +export NO_SWIFTLINT=1 export COCOAPODS_DISABLE_STATS=1 # https://github.com/Homebrew/homebrew-core/issues/15746
bash
d_bash_11160
--- +++ @@ -8,6 +8,6 @@ echo "" echo "Please download the latest virtual machine from http://chipster.github.io/chipster/" echo "" -echo "For more information, see also http://chipster.csc.fi" +echo "For more information, see also https://chipster.csc.fi" exit 0
bash
d_bash_11161
--- +++ @@ -4,7 +4,7 @@ #SBATCH -N 1 # Number of nodes (keep at 1, except when using MPI queue) #SBATCH -t 0-45:59 # Runtime in D-HH:MM format #SBATCH -p medium # Partition (queue) -#SBATCH -J smith # Job name +#SBATCH -J indrop # Job name #SBATCH -...
bash
d_bash_11162
--- +++ @@ -16,9 +16,14 @@ docker build -t quay.io/$TRAVIS_REPO_SLUG:$TRAVIS_COMMIT . -docker run --net host quay.io/$TRAVIS_REPO_SLUG:$TRAVIS_COMMIT rake db:create db:migrate -docker run -d --net host quay.io/$TRAVIS_REPO_SLUG:$TRAVIS_COMMIT -sleep 10 +docker run -e RAILS_ENV=production -e SECRET_KEY_BASE=1234 ...
bash
d_bash_11163
--- +++ @@ -1,18 +1,28 @@ #!/bin/bash +execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)" -JAVA_PATH="" -#JAVA_PATH="/usr/sbin/jre1.8.0_77/bin/" - -execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)" +# If you don't have `java` in your $PATH or you want to use a different JDK, either export +# JAVA_HOME in your...
bash
d_bash_11164
--- +++ @@ -24,6 +24,7 @@ exclude_dir ~/n exclude_dir ~/.atom exclude_dir ~/Music/iTunes/Album\ Artwork/Cache +exclude_dir ~/.Trash # Clone Asimov for excluding development directories if [ ! -d "$ASIMOV_PATH" ]; then
bash
d_bash_11165
--- +++ @@ -4,4 +4,4 @@ set -e docker build . -f Dockerfile.vfxplatform2017 -t fredrikaverpil/qt.py:2017 -docker build . -f Dockerfile.vfxplatform2017 -t fredrikaverpil/qt.py:2018 +docker build . -f Dockerfile.vfxplatform2018 -t fredrikaverpil/qt.py:2018
bash
d_bash_11166
--- +++ @@ -19,7 +19,7 @@ -c Release \ --include-symbols //p:SymbolPackageFormat=snupkg \ -o .nupkg/ \ - //p:Version="$version" \ + //p:Version="$version+$metadata" \ //p:PackageVersion="$version+$metadata" \ //p:PackageReleaseNotes="tag: $tag" \ && git tag "$tag" -m "Create nuget tag $tag"
bash
d_bash_11167
--- +++ @@ -2,17 +2,10 @@ set -euo pipefail -readonly SKIP_TESTS="${SKIP_TESTS:-false}" - # shellcheck source=common.sh source "$(dirname "$0")/common.sh" repository=$(pwd)/distribution-repository -if [ "$SKIP_TESTS" == "true" ]; then - build_task=assemble -else - build_task=build matrixTests -fi pushd git...
bash
d_bash_11168
--- +++ @@ -1,7 +1,8 @@ #!/bin/bash export PATH=/bin:/usr/bin:/usr/local/sbin CONFS=/var/www/easypress.ca/console/perms -if cd $CONFS; then +if [ -d $CONFS ]; then + cd $CONFS CF=`/usr/bin/find . -type f -exec /usr/bin/basename {} \;` if [ "$CF" != "" ]; then for DOMAIN in $CF; do @@ -21,6 +22,6 @@ exit ...
bash
d_bash_11169
--- +++ @@ -4,7 +4,11 @@ PROJECT="$1" if [[ "$PROJECT" == "" ]]; then - echo "Usage: $0 projectdir" + echo "Usage: $0 projectdir" >&2 + exit 1 +fi +if [[ ! -d "$PROJECT" ]]; then + echo "Project is not a directory: $PROJECT" >&2 exit 1 fi
bash
d_bash_11170
--- +++ @@ -1,8 +1,10 @@ #!/bin/bash -# Checkout master and update -git checkout master -git pull upstream master +# Name of Stackato executable +if [ -z $STACKATO_EXECUTABLE ]; then + echo "Set environment variable STACKATO_EXECUTABLE to the name of the Stackato command line executable." + exit 1 +fi pyt...
bash
d_bash_11171
--- +++ @@ -2,5 +2,5 @@ for PIP in /opt/python/*/bin/pip; do $PIP install --disable-pip-version-check --upgrade pip - $PIP install scikit-build==0.8.1 + $PIP install scikit-build==0.9.0 done
bash
d_bash_11172
--- +++ @@ -8,7 +8,7 @@ extract_meta () { origin=$(git config --get remote.origin.url) sha1=$(git rev-parse HEAD) - message=$(git_log %B | head -n 1) + message=$(git_log %B | sed 's/^/ /') echo "origin: $origin" > /meta/scm echo "reference: $BZK_SCM_REFERENCE" >> /meta/scm @@ -20,7 +...
bash
d_bash_11173
--- +++ @@ -1,2 +1,11 @@ +# Add Homebrew to PATH +export PATH="/usr/local/bin:$PATH" + +# Add QT 5.5 to PATH +export PATH="$(brew --prefix qt@5.5)/bin:$PATH" + +# Add Postgres to PATH +export PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH" + export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv in...
bash
d_bash_11174
--- +++ @@ -1,5 +1,3 @@ -PATH="/usr/local/opt/openssl/bin:$PATH" - if command -v rbenv >/dev/null; then eval "$(rbenv init - --no-rehash)" fi
bash
d_bash_11175
--- +++ @@ -5,7 +5,7 @@ #SBATCH -t {PASS9/TIME} # Runtime in minutes #SBATCH -p {SLURM_PARTITION} # Partition to submit to #SBATCH --mem-per-cpu={PASS9/MEMORY} # Memory per cpu in MB (see also --mem) -#SBATCH -o {JOB_DIRECTORY}/underground_video/log_%A_%a.txt # File to which stdout and stderr will be wri...
bash
d_bash_11176
--- +++ @@ -14,14 +14,15 @@ VARIANT="Default" fi -# Rename darwin into osx -if test "$OS_NAME" = "darwin"; then - OS_NAME="osx" -fi - # Rename x86_64 into x64 to distinguis between x86 and x86_64 with grep. if test "$ARCH" = "x86_64"; then ARCH="x64" +fi + +# Rename darwin into osx. Also call the ar...
bash
d_bash_11177
--- +++ @@ -12,7 +12,7 @@ exit 0 fi -curl -L https://github.com/fgrehm/notify-send-http/releases/download/v0.1.0/client | sudo tee /usr/bin/notify-send &>/dev/null +curl -sL https://github.com/fgrehm/notify-send-http/releases/download/v0.1.0/client | sudo tee /usr/bin/notify-send &>/dev/null sudo chmod +x /usr...
bash
d_bash_11178
--- +++ @@ -9,4 +9,5 @@ $RUBY_RABBITMQ_HTTP_API_CLIENT_RABBITMQCTL set_permissions -p / guest ".*" ".*" ".*" # Reduce retention policy for faster publishing of stats -$RUBY_RABBITMQ_HTTP_API_CLIENT_RABBITMQCTL eval 'supervisor2:terminate_child(rabbit_mgmt_sup_sup, rabbit_mgmt_sup), application:set_env(rabbitmq_ma...
bash
d_bash_11179
--- +++ @@ -8,10 +8,20 @@ set password_count 4 EOF -run_mdp generate -p digits \ - | iconv -f utf-8 -t ascii --unicode-subst=. \ - | sed 's/[a-z]/./g' \ - > test.stdout +# Technically this is more a problem with the version of iconv than the +# operating system, but iconv --version is not exactly consistent so ...
bash
d_bash_11180
--- +++ @@ -15,7 +15,7 @@ # Build CON-SAI -git clone https://github.com/SSL-Roots/CON-SAI ~/catkin_ws/src/CON-SAI +rsync -av ./ ~/catkin_ws/src/CON-SAI cd ~/catkin_ws/src/CON-SAI git submodule init
bash
d_bash_11181
--- +++ @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -e -x + +source ~/.bashrc export PATH=/usr/local/ruby/bin:/usr/local/go/bin:$PATH export GOPATH=$(pwd)/gopath
bash
d_bash_11182
--- +++ @@ -9,6 +9,14 @@ # simulate crash of simulation after 5 seconds SIMULATION_PID=$! sleep 5 +# wait longer if backup file has not been created yet +# check every second if backup file exists +for i in {0..5}; do + if [ -e "$BACKUP_RESTORE_FILE" ]; then + break + fi + sleep 1 +done kill -9 $SIMULATION_...
bash
d_bash_11183
--- +++ @@ -37,7 +37,10 @@ # bootprint json into html in the filename directory echo "Converting Swagger JSON to HTML" - bootprint openapi "${file}" "${nginx_public_directory}/${filename}" + # continue on error + if bootprint openapi "${file}" "${nginx_public_directory}/${file...
bash
d_bash_11184
--- +++ @@ -6,4 +6,7 @@ unset -v file # Export PATH environment variable -. "$SEQCLOUD_DIR"/profile/path.sh +# Don't re-export for interactive queue process +if [[ -z "$INTERACTIVE_QUEUE" ]]; then + . "$SEQCLOUD_DIR"/profile/path.sh +fi
bash
d_bash_11185
--- +++ @@ -20,12 +20,14 @@ fi mkdir $DEST -#copy all files -cp -a . $DEST + +rsync \ + --exclude '.git*' \ + --exclude 'plugin.sh' \ + --exclude 'dist' \ + -a . $DEST pushd $DEST > /dev/null -#remove initialization script -rm plugin.sh #do replacements sed \
bash
d_bash_11186
--- +++ @@ -18,7 +18,7 @@ do if [[ -a $project/pom.xml ]] then - mvn -q -f $project/pom.xml clean + mvn-vidal -q -f $project/pom.xml clean fi done echo "Maven cleanup ✅\n"
bash
d_bash_11187
--- +++ @@ -23,7 +23,7 @@ [ -e ${ITK_XML}/itkImage_8h.xml ] || ( cd ${ITK_XML} && echo "Downloading ITK Doxygen XML..." && - curl -O http://public.kitware.com/pub/itk/NightlyDoxygen/InsightDoxygenDocXml.tar.gz && + curl -O https://public.kitware.com/pub/itk/NightlyDoxygen/InsightDoxygen...
bash
d_bash_11188
--- +++ @@ -7,9 +7,11 @@ exit 1 fi -echo "" -echo "Killing ssh-agent" +echo "adding 'id_rsa.${HOSTNAME}' to ssh-agent..." +ssh-add -K "${HOME}/.ssh/id_rsa.${HOSTNAME}" +echo "killing ssh-agent... " sudo killall ssh-agent +echo "done" echo "" if [ ! -d ~/.ssh/private ]; then
bash
d_bash_11189
--- +++ @@ -8,6 +8,7 @@ echo 'deb http://cran.rstudio.com/bin/linux/ubuntu trusty/' | sudo tee -a /etc/apt/sources.list sudo apt-get update && sudo apt-get install r-base r-base-dev -y sudo Rscript -e "install.packages('optparse', repos='http://cran.rstudio.org')" + sudo Rscript -e "install.packages('se...
bash
d_bash_11190
--- +++ @@ -5,26 +5,32 @@ conda env remove --yes -n signac-py34 conda env remove --yes -n signac-py35 -echo "Creating environment for python 2.7..." +echo "Creating environment for python 2.7." conda create --yes -n signac-py27 python=2.7 pymongo networkx mpi4py . activate signac-py27 python setup.py develop ...
bash
d_bash_11191
--- +++ @@ -8,7 +8,7 @@ RELEASE_VERSION=`ruby scripts/get-release-version.rb $GO_PIPELINE_COUNTER` CHANGELOG=`ruby scripts/get-release-changelog.rb CHANGELOG.md` -TAG="jumi-$RELEASE_VERSION" +TAG="v$RELEASE_VERSION" mkdir build echo "$RELEASE_VERSION" > build/version
bash
d_bash_11192
--- +++ @@ -10,7 +10,7 @@ LDFLAGS="$(pkg-config --libs gmp-freestanding)" \ ./configure -gmp -if [ `uname -s` = "FreeBSD" ]; then +if [ `uname -s` = "FreeBSD" ] || [ `uname -s` = "OpenBSD" ]; then gmake else make
bash
d_bash_11193
--- +++ @@ -20,7 +20,7 @@ # Upload data file="`date +"PDA %Y-%m-%d %H:%M:00 (Full)"`" zip -r "$file" egnyte-local/* -s3cmd put "$file" s3://pharmadataassociates-backups/ +s3cmd put --multipart-chunk-size-mb=100 "$file" s3://pharmadataassociates-backups/ rm "$file" # Compute stats
bash
d_bash_11194
--- +++ @@ -31,5 +31,4 @@ root="$(dirname "$(rl "$0")")" # By default on Linux/MacOS we build Hadrian using Cabal -chmod a+x "$root/build.cabal.sh" (. "$root/build.cabal.sh" "$@")
bash
d_bash_11195
--- +++ @@ -24,6 +24,11 @@ function install_files(){ pushd "$TARGET" + if [[ -n "$(git tag -l)" ]];then # If tag found, checkout last tag + latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) + echo "Found latest tag: $latest_tag" + git checkout "$latest_tag" + fi ...
bash
d_bash_11196
--- +++ @@ -4,6 +4,8 @@ # Install APT packages. packages=( i3 + curl + colordiff tmux zsh build-essential
bash
d_bash_11197
--- +++ @@ -9,7 +9,7 @@ export DJANGO_PREPARE_DIRECTORIES="${DJANGO_PREPARE_DIRECTORIES:-$DJANGO_MEDIA_ROOT}" if [[ "$DJANGO_PREPARE_DIRECTORIES" ]];then mkdir -p ${DJANGO_PREPARE_DIRECTORIES//,/ } - chmod 777 -R ${DJANGO_PREPARE_DIRECTORIES//,/ } + chmod 777 ${DJANGO_PREPARE_DIRECTORIES//,/ } fi if ...
bash
d_bash_11198
--- +++ @@ -12,7 +12,7 @@ echo "Resarting ARTF Data Receiver Service..." sudo stop $RECEIVER_SERVICE -sudo stop $RECEIVER_SERVICE +sudo start $RECEIVER_SERVICE echo "Resarting ARTF Data Viewer Service..." sudo stop $VIEWER_SERVICE
bash
d_bash_11199
--- +++ @@ -7,3 +7,5 @@ --logs-dir "$moziot_dir/var/log" \ --work-dir "$moziot_dir/var/lib" \ --deploy-hook "$moziot_dir/gateway/tools/deploy-certificates.sh" + +chown -R pi:pi "$moziot_dir/etc" "$moziot_dir/var"
bash