document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_8100
--- +++ @@ -15,3 +15,5 @@ # run app npm install node app & +echo "sleeping additional 30 seconds for hapi..." +sleep 30
bash
d_bash_8101
--- +++ @@ -1,15 +1,5 @@ set -e -zypper --non-interactive in \ - swig \ - gcc-c++ \ - libopenssl-devel \ - python-m2crypto \ - python-pycrypto \ - python-msgpack-python \ - python-PyYAML \ - python-Jinja2 \ - python-psutil \ - python-pyzmq +zypper --non-interactive in swig gcc-c++ libop...
bash
d_bash_8102
--- +++ @@ -1,3 +1,4 @@ #!/usr/bin/env bash +patch -p1 < patches/0001-enable-hardware-I-O-coherency.patch patch -p1 < patches/patch-cpuidle-3.17-std.patch
bash
d_bash_8103
--- +++ @@ -2,7 +2,7 @@ apt-get update # as vagrant user -echo "alias ipynb='ipython notebook --ip=0.0.0.0 /vagrant/'" >> .bashrc +echo "alias ipynb='ipython notebook --ip=0.0.0.0 /vagrant/ipynb/'" >> .bashrc source .bashrc wget http://repo.continuum.io/miniconda/Miniconda-3.5.2-Linux-x86_64.sh # this is the ve...
bash
d_bash_8104
--- +++ @@ -3,5 +3,7 @@ echo 'LANG=en_US.UTF-8' >! ~/.zshrc echo 'source /vagrant_data/powerlevel9k.zsh-theme' >> ~/.zshrc +echo 'echo "Have a look at the ~/p9k folder for prepared test setups."' >> ~/.zshrc + # setup environment /vagrant_data/test-vm-providers/setup-environment.sh
bash
d_bash_8105
--- +++ @@ -1,8 +1,8 @@ #!/bin/sh # Run all tests and generate coverage report -coverage run --source textx -m py.test tests/functional || exit 1 -coverage report --omit textx/six.py --fail-under 80 || exit 1 +coverage run --omit textx/six.py --source textx -m py.test tests/functional || exit 1 +coverage report -...
bash
d_bash_8106
--- +++ @@ -3,8 +3,8 @@ set -u # checksums -sashimi_md5="29fc14177ba735b4ebf598793d5a014a" -sashimi_anno_md5="528865ba00853e8389083e828f735eb6" +sashimi_md5="e087c484de2ed2498fabe5c3f0b7e836" +sashimi_anno_md5="b6f82cfd3c7935c1113338730a2cffa2" fail() { echo ${1-""} >&2 && exit 1
bash
d_bash_8107
--- +++ @@ -19,3 +19,4 @@ service apache2 start tail -f /dev/null +
bash
d_bash_8108
--- +++ @@ -1,6 +1,10 @@ #!/bin/sh if [ ${3} = "YES" ]; then - PATH=${PATH}\;${1}/bin\;${1}/lib + if test `echo "${PATH}" | grep -c \;` != 0; then + PATH=${PATH}\;${1}/bin\;${1}/lib + else + PATH=${PATH}:${1}/bin:${1}/lib + fi export PATH else LIBPATH=${1}/lib
bash
d_bash_8109
--- +++ @@ -6,11 +6,9 @@ check_projects() { - EXIST_PROJECTS=$(ls $PROJECTS_DIR) - for CHECK_PROJECT in $PROJECTS do - if [ "$(echo $EXIST_PROJECTS | grep -w $CHECK_PROJECT )" = "" ] + if [ ! -d "$PROJECTS_DIR/$CHECK_PROJECT" ] then clone_project "$CHECK_PROJECT" ...
bash
d_bash_8110
--- +++ @@ -20,7 +20,7 @@ # Lock acquired. Pause briefly to allow the previous holder to restart # If it takes longer than five seconds run `systemctl restart consul` # after releasing the lock then we might cause a quorum outage -sleep 5 +sleep 10 # Verify that there is a leader before releasing the lock and r...
bash
d_bash_8111
--- +++ @@ -10,6 +10,15 @@ exit 1 fi +# Ensure that the CHANGELOG does not contain duplicate versions +DUPLICATE_CHANGELOG_VERSIONS=$(grep --extended-regexp '^v [0-9.]+' CHANGELOG | sed 's| (unreleased)||' | sort | uniq -d) +if [ "${DUPLICATE_CHANGELOG_VERSIONS}" != "" ] +then + echo '✖ ERROR: Duplicate versio...
bash
d_bash_8112
--- +++ @@ -28,7 +28,7 @@ } it_stops_with_source_path_being_empty() { - local RETV DEST_FN="somefilename.txt"; + local RETV DEST_FN="${MODULE}-somefile-$$.txt"; RETV="$(createFileByCpIfNotExists "${DEST_FN}" && echo $? || echo $?)"; test ${RETV} -eq 20; test ! -f "${DEST_FN}";
bash
d_bash_8113
--- +++ @@ -1,13 +1,14 @@ #!/bin/bash PATH_FOTOBOX="/home/pi/git/fotobox" +LOG_DATE"date +%y%m%d-%H%M" cd $PATH_FOTOBOX mkdir -p $PATH_FOTOBOX/log -sudo python $PATH_FOTOBOX/lib/led_server.py > $PATH_FOTOBOX/log/led_server.log 2> $PATH_FOTOBOX/log/led_server.err & +sudo python $PATH_FOTOBOX/lib/led_server.py ...
bash
d_bash_8114
--- +++ @@ -1,4 +1,5 @@ #!/bin/bash +set -e if [[ $TASKS == "clang-format" ]]; then cd $TRAVIS_BUILD_DIR
bash
d_bash_8115
--- +++ @@ -1,13 +1,17 @@ +#!/bin/bash # Updates Bower packages and reinstalls latest versions of Bootswatch themes -pushd public +function bootswatch { + pushd components/bootstrap.css/css > /dev/null + for theme in $*; do + echo "Downloading $theme theme" + curl http://bootswatch.com/$theme/bootstrap.css -so b...
bash
d_bash_8116
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash src=$1 -mem=$(echo `free -g | grep ^Mem | awk '{print $2}'` / 8.0 | bc)G +mem=$(echo `free -g | grep ^Mem | awk '{print $2}'` / 4.0 | bc)G tmp=${HOME} thr=`nproc` base=`basename $1`
bash
d_bash_8117
--- +++ @@ -25,18 +25,8 @@ ./make-csv.rb 100 | tail -n 1 # match[stdout]=/^100/ -# match[stdout]=/196[0-9]-[0-1][0-9]-[0-3][0-9]$/ - -./make-csv.rb 100 | cut -f 10 -d';' | sort -n | head -n1 -# match=/^40$/ - -./make-csv.rb 100 | cut -f 10 -d';' | awk '{a+=$1} END{print a/NR}' -# match=/^75.54/ - -./make-csv.rb 1...
bash
d_bash_8118
--- +++ @@ -3,5 +3,5 @@ rm /etc/udev/rules.d/70-persistent-net.rules mkdir /etc/udev/rules.d/70-persistent-net.rules rm /lib/udev/rules.d/75-persistent-net-generator.rules -rm -rf /dev/.udev/ /var/lib/dhcp3/* +rm -rf /dev/.udev/ /var/lib/dhcp/* echo "pre-up sleep 2" >> /etc/network/interfaces
bash
d_bash_8119
--- +++ @@ -9,7 +9,7 @@ echo "${f##*/}" for n in 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 do - $COMMAND $f 0 0 0 -i $n + DYLD_LIBRARY_PATH=$MVT_LIBRARY_PATH $COMMAND $f 0 0 0 -i $n done echo " " echo " " @@ -23,7 +23,7 @@ echo "${f##*/}" for n in 1000 2000 3000 4000 500...
bash
d_bash_8120
--- +++ @@ -30,18 +30,12 @@ sudo apt update && sudo apt-get install nvidia-docker2 -y sudo pkill -SIGHUP dockerd -# Docker Images -sudo docker pull nvidia/cuda:8.0-runtime -sudo docker pull alpine:3.7 - # CUDA sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update && sudo apt install nvidia-367 # ...
bash
d_bash_8121
--- +++ @@ -2,14 +2,14 @@ set -e if [ "$#" -eq 0 -o "${1:0:1}" = '-' ]; then - set -- docker daemon \ + set -- dockerd \ --host=unix:///var/run/docker.sock \ --host=tcp://0.0.0.0:2375 \ --storage-driver=vfs \ "$@" fi -if [ "$1" = 'docker' -a "$2" = 'daemon' ]; then +if [ "$1" = 'dockerd' ]; then ...
bash
d_bash_8122
--- +++ @@ -9,8 +9,9 @@ libFolder="$(readlink -f "$thisFolder/../lib")" +# pandas>=0.19.0 python_deps=(pandas docopt numpy scipy) -r_deps=(stringr magrittr ggplot2 docopt dplyr gridExtra) +r_deps=(stringr magrittr ggplot2 docopt gridExtra) # Generate a temporary output file to filter for installation instruc...
bash
d_bash_8123
--- +++ @@ -16,10 +16,11 @@ EXAMPLE_NAME=$(basename $dir) echo "*** Building app $EXAMPLE_NAME ***" - make -j5 + make -j5 2>&1 1>build.log if [[ $? -ne 0 ]]; then echo "Build of $EXAMPLE_NAME failed" FAILS+=($EXAMPLE_NAME) + tail -n 100 build.log continue ...
bash
d_bash_8124
--- +++ @@ -18,7 +18,7 @@ HOST_USER_ID=$(docker-machine ssh $(docker-machine active) id -u) fi -test -d "$ARTIFACTS" || mkdir "$ARTIFACTS" +mkdir -p "$ARTIFACTS" DONE_CANARY="$ARTIFACTS/conda-forge-build-done" rm -f "$DONE_CANARY"
bash
d_bash_8125
--- +++ @@ -8,14 +8,10 @@ export LSCOLORS=ExFxBxDxCxegedabagacad # Set the PATH variable. +export PATH=$HOME/.dotfiles/bin +export PATH=/usr/local/go/bin:$PATH +export PATH=/usr/local/sbin:$PATH export PATH=/usr/local/bin:$PATH - -if [[ -d /usr/local/sbin ]]; then - export PATH=/usr/local/sbin:$PATH -fi - -ex...
bash
d_bash_8126
--- +++ @@ -3,6 +3,6 @@ # # cleanup.sh # -find . -type f -name '*.py[co]' -exec rm -v {} \; -find . -type f -name '*~' -exec rm -v {} \; -find . -type d -name '__pycache__' -exec rmdir -v {} \; +find . -type f -name '*.py[co]' -delete +find . -type f -name '*~' -delete +find . -type d -name '__pycache__' -delete
bash
d_bash_8127
--- +++ @@ -5,8 +5,8 @@ --driver-memory 54g \ --driver-cores 14 \ /jar/inreach-ml-scoring.jar \ - -model_path s3n://inreach-ml-models-official/ \ - -from_timestamp $FROM_TI...
bash
d_bash_8128
--- +++ @@ -34,4 +34,5 @@ PID_FILE="$AGENT_WORK_DIR/go-agent.pid" fi -cat $PID_FILE | xargs kill +kill "$(cat "$PID_FILE")" +
bash
d_bash_8129
--- +++ @@ -15,3 +15,5 @@ cp -f 'jars/minecraft_server.jar' 'final_out/minecraft_server.jar' cd 'final_out/minecraft_server' jar -uf '../minecraft_server.jar' '.' +cd '../../bin/minecraft_server' +jar -cfe '../../final_out/minecraft_server_unobfuscated.jar' 'net.minecraft.server.MinecraftServer' '.'
bash
d_bash_8130
--- +++ @@ -2,9 +2,22 @@ set -eux +# temporary work-around for issues due to new scp filename checking +# https://github.com/ansible/ansible/issues/52640 +if [[ "$(scp -T 2>&1)" == "usage: scp "* ]]; then + # scp supports the -T option + # work-around required + scp_args=("-e" "ansible_scp_extra_args=-T...
bash
d_bash_8131
--- +++ @@ -1,3 +1,3 @@ #!/usr/bin/env bash -hg archive ~/Desktop/clam.zip -I 'doc' -I 'plugin' -I README.markdown -I LICENSE.markdown +hg archive ~/Desktop/clam.zip -I 'doc' -I 'plugin' -I 'clamsyntax' -I README.markdown -I LICENSE.markdown
bash
d_bash_8132
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -cd source +cd $SRC_DIR ./prepare ./configure --prefix=$PREFIX make
bash
d_bash_8133
--- +++ @@ -2,11 +2,10 @@ set -x -OUTPUT=514-string-multiline.out -grep -q 1234 ${OUTPUT} || exit 1 -grep -q 4321 ${OUTPUT} || exit 1 -grep -q AA ${OUTPUT} || exit 1 -grep -q "x=1" ${OUTPUT} || exit 1 +grep -q 1234 ${TURBINE_OUTPUT} || exit 1 +grep -q 4321 ${TURBINE_OUTPUT} || exit 1 +grep -q AA ${TURB...
bash
d_bash_8134
--- +++ @@ -1,5 +1,7 @@ #!/bin/bash +set -e +rm -rf dist bumpversion patch #major minor patch - bump version in all files python setup.py sdist bdist_wheel --universal twine upload dist/**tar.gz dist/**whl
bash
d_bash_8135
--- +++ @@ -1,6 +1,8 @@ #!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +npm run build mkdir -p tmp
bash
d_bash_8136
--- +++ @@ -5,9 +5,11 @@ case "$PLATFORM" in "osx") - brew cask install lazarus + brew install lazarus ;; "linux") + sudo apt-get update + sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install lazarus ;; *) echo "Invalid PLATFORM"
bash
d_bash_8137
--- +++ @@ -16,6 +16,13 @@ done } +function check_file { + if [[ ! -f $1 ]]; then + echo "Fatal error: \`$1' is not a file!" + exit 1; + fi +} + OPTIND=1 output_dir="./jail" @@ -24,6 +31,7 @@ while getopts "o:c:f:" opt; do case "$opt" in f) + check_file $OPTAR...
bash
d_bash_8138
--- +++ @@ -3,7 +3,7 @@ script_dir=$(cd `dirname $0`; pwd) root_dir=`dirname $script_dir` -test_packages="." +test_packages=". ./api" go_test_flags="-v -race -timeout 2s" echo Running go test on packages "'$test_packages'" with flags "'$go_test_flags'"
bash
d_bash_8139
--- +++ @@ -10,11 +10,6 @@ git config --global user.email $GIT_EMAIL git config --global user.name $GIT_NAME git config --global push.default simple - -echo $GITHUB_SSH_KEY > ~/.ssh/id_rsa -chmod 400 ~/.ssh/id_rsa -eval "$(ssh-agent -s)" -echo > ssh-add ~/.ssh/id_rsa # Clone Repo git clone https://$GIT_USERNAM...
bash
d_bash_8140
--- +++ @@ -9,3 +9,5 @@ do /srv/pisg/pisg --configfile=$config done + +exit 0
bash
d_bash_8141
--- +++ @@ -2,7 +2,8 @@ make clean cd third_party/protobuf \ && ./autogen.sh \ - && ./configure && make install -j8 \ + && ./configure + && make install -j8 \ && cd ../.. cd third_party/grpc \ && make install -j8 \
bash
d_bash_8142
--- +++ @@ -14,3 +14,4 @@ alias dococop="docorwb rubocop" alias docolog="doco logs --tail=100 -f" alias docoblog="docolog web" +alias docodebug="docker-compose run --rm web bundle exec rdebug-ide --port 1234 --host 0.0.0.0 --dispatcher-port 26162 -- bin/rails server -b 0.0.0.0 -p 3000"
bash
d_bash_8143
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Move and Upload COMMIT_SHA=$(git rev-parse HEAD) TARGET_DIR=/var/www/wordpress/APMPlanner2/daily
bash
d_bash_8144
--- +++ @@ -10,7 +10,7 @@ brew update && brew upgrade && brew cleanup && brew doctor echo "🧹 cask" -brew cask upgrade && brew cask doctor +brew cask upgrade --greedy && brew cask doctor echo "🧹 gem" gem update && gem cleanup
bash
d_bash_8145
--- +++ @@ -1,21 +1,22 @@ #!/bin/bash BASE_DIR=$(cd $(dirname $0); pwd) -echo "Destination: $BASE_DIR/public_html" +DEST_DIR=$BASE_DIR/public_html +echo "Destination: $DEST_DIR" echo "Fetching jquery.min.js..." -curl -L --silent http://code.jquery.com/jquery.min.js > $BASE_DIR/public_html/jquery.min.js +curl -L ...
bash
d_bash_8146
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ] && [ $TRAVIS_COMMIT_MESSAGE == *"[ci deploy]"* ]; then +if [[ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ] && [ $TRAVIS_COMMIT_MESSAGE == *"[ci deploy]"* ]]; then mv...
bash
d_bash_8147
--- +++ @@ -5,7 +5,7 @@ sleep 4 trashbase.bash cd /Applications -git clone https://github.com/Wahlmanj2/PlexConnect.git +git clone https://github.com/Wahlmanj3/PlexConnect.git mkdir -p /Applications/PlexConnect/update/OSX cd __HOME__/Library/Application\ Support/OpenPlex # fetch changes, git stores them in FETC...
bash
d_bash_8148
--- +++ @@ -34,4 +34,5 @@ sudo mkdir -p /etc/udev/hwdb.d sudo stow hwdb -t /etc/udev/hwdb.d -sudo stow desktop-session -t /usr/share/xsessions/ +# Just do a plain copy for this, links don't seem to work +sudo cp desktop-session/xsession.desktop /usr/share/xsessions/
bash
d_bash_8149
--- +++ @@ -1,2 +1,2 @@ #!/bin/bash -curl -X POST -d @$1 http://127.0.0.1:8080/v2/apps -H 'Content-Type: application/json' | jq . +curl -X POST -d @$1 http://127.0.0.1:8080/v2/apps -H 'Content-Type: application/json'
bash
d_bash_8150
--- +++ @@ -11,7 +11,7 @@ RPM_DIR="${PACKAGE}/rpm" SPEC_FILE="${PACKAGE}/package.spec" - fold_start "RPM ${PACKAGE}" + fold_start "${PACKAGE}" log "Building RPM package ${PACKAGE}" rm -rf ${RPM_DIR} @@ -32,5 +32,5 @@ mv ${RPM_DIR}/noarch/*.rpm ${RPM_DIR}/ rm -rf ${RPM_DIR}/noarch - fold_end...
bash
d_bash_8151
--- +++ @@ -3,6 +3,9 @@ # Set default go workspace export GOPATH=$HOME/.go export PATH=$PATH:$HOME/.go/bin + +# Cargo bins +export PATH=$PATH:$HOME/.cargo/bin if [[ "$os" = "$linux_str" ]]; then #PATH
bash
d_bash_8152
--- +++ @@ -13,7 +13,7 @@ cd $SNAPPY_HOME git clean -fdx git reset --hard -patch -N $SNAPPY_HOME/autogen.sh $ROOT_HOME/patches/autogen.sh.osx.patch +[[ "$OSTYPE" == "darwin"* ]] && patch -N $SNAPPY_HOME/autogen.sh $ROOT_HOME/patches/autogen.sh.osx.patch patch -N $SNAPPY_HOME/configure.ac $ROOT_HOME/patches/config...
bash
d_bash_8153
--- +++ @@ -1,9 +1,9 @@ if [ -f /etc/lsb-release ]; then - curl -o chefdk.deb https://packages.chef.io/files/stable/chefdk/2.4.17/ubuntu/16.04/chefdk_2.4.17-1_amd64.deb - dpkg -i chefdk.deb + curl -o chefdk.deb https://packages.chef.io/files/stable/chefdk/3.0.36/ubuntu/16.04/chefdk_3.0.36-1_amd64.deb + dpkg ...
bash
d_bash_8154
--- +++ @@ -4,7 +4,7 @@ INTEGRATION="docker/integration.yml" # Build the project -docker build -t ${PROJECT_NAME} -f docker/Dockerfile-build ../ +docker build --no-cache -t ${PROJECT_NAME} -f docker/Dockerfile-build ../ # If successfully built, tag and push to registry if [ ! "${JENKINS_HOME}" = '' ]
bash
d_bash_8155
--- +++ @@ -15,7 +15,7 @@ mkdir /tmp/build ln -s /tmp/build ./build -pip install . +pip install -e . echo echo "################################################################################"
bash
d_bash_8156
--- +++ @@ -39,10 +39,6 @@ brew cask install sqlitebrowser brew cask install the-unarchiver -# Fonts -brew tap caskroom/fonts -brew cask install font-sauce-code-powerline - # Make sure the links work in alfred brew cask alfred link
bash
d_bash_8157
--- +++ @@ -23,16 +23,3 @@ # update Atom packages apm upgrade -c false - -# keep the latest copy of MySQL docs available locally -DOCS_HOME="$HOME/Documents" -cd "$DOCS_HOME" -MYSQL_VERSION="5.6" -MYSQL_DOCS_BASEURL="http://downloads.mysql.com/docs/" -MYSQL_DOCS="refman-$MYSQL_VERSION-en." -MYSQL_HTML_DOCS="${MYS...
bash
d_bash_8158
--- +++ @@ -16,7 +16,7 @@ # Create a neat zip file with that information cd target/site -zip -r ../../userlib/dependency-info.zip . +zip -r ../../userlib/database-connector-dependencies.zip . cd ../../ # Clean up
bash
d_bash_8159
--- +++ @@ -5,11 +5,11 @@ ## GITHUB PROJECTS ## # These projects are downloaded from "github.com/user/repo/archive/$VERSION.tar.gz" -K8S_VERSION='v1.2.0-beta.1' +K8S_VERSION='v1.2.0' ETCD_VERSION='v2.2.5' FLANNEL_VERSION='v0.5.5' REGISTRY_VERSION='v2.3.1' -HEAPSTER_VERSION='v1.0.0-beta1' +HEAPSTER_VERSION='v1....
bash
d_bash_8160
--- +++ @@ -2,10 +2,13 @@ set -e -for dir in external hepconnector libelperiodic +for ext in gcda gcno do - find ${dir} -name '*.gcda' -delete + for dir in external hepconnector libelperiodic + do + find ${dir} -name "*.${ext}"' -delete + done + find src -name "*_fin.${ext}" -delete done -find src -nam...
bash
d_bash_8161
--- +++ @@ -15,8 +15,14 @@ end tell EOD -# TODO(rodionovd): install Xcode.app via xcode-install gem: -# 1) sudo gem install xcode-select -# 2) get XCODE_INSTALL_USER and XCODE_INSTALL_PASSWORD from Keychain: -# /usr/bin/security find-generic-password -wa SOMEKEY -# 3) XCODE_INSTALL_USER="foo" XCODE_INSTALL_P...
bash
d_bash_8162
--- +++ @@ -4,10 +4,10 @@ set -e -if lsb_release -d | grep 'Ubuntu 18.04' > /dev/null; then - echo "Found Ubuntu 18.04" +if lsb_release -d | grep 'Ubuntu 18.04' || lsb_release -d | grep 'Ubuntu 20.04' > /dev/null; then + echo "Either, Ubuntu 18.04, 20.04 found" else - echo "ERROR! Ubuntu 18.04 not found." + ech...
bash
d_bash_8163
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env sh which autoreconf > /dev/null || (echo "Please install autoconf" && exit 1) # on OSX autoconf may need a little help with these paths -aclocal -I /opt/local/share/aclocal -I /usr/local/share/aclocal +aclocal -I /opt/local/share/aclocal -I /usr/local/share/aclocal 2> /dev/nu...
bash
d_bash_8164
--- +++ @@ -1,3 +1,6 @@ +pgrep -u "$USER" ssh-agent >/dev/null || ssh-agent > ~/.ssh-agent-env +test -z "$SSH_AUTH_SOCK" && eval "$(<~/.ssh-agent-env)" >/dev/null + function ssh() { keyLifeTime=2h
bash
d_bash_8165
--- +++ @@ -18,6 +18,7 @@ sed -ie "s/\${timestamp}/`date +%Y%m%d%H%M%S`/g" mta.yaml # execute MTA build +mkdir -p ${WORKSPACE}/dist java -jar ${WORKSPACE}/tmp/mta/mta.jar --mtar ${CIRCLE_PROJECT_REPONAME}.mtar --build-target=NEO build mkdir -p ${WORKSPACE}/dist/mta cp ${CIRCLE_PROJECT_REPONAME}.mtar dist/mta/$...
bash
d_bash_8166
--- +++ @@ -17,5 +17,7 @@ . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion + elif [ -f /usr/local/etc/bash_completion ]; then + . /usr/local/etc/bash_completion fi fi
bash
d_bash_8167
--- +++ @@ -2,22 +2,22 @@ set +x # remove any lingering log files that might be owned by root -rm -f /galaxy_logs/*.log +rm -f /galaxy_logs/*.log if [ ! -f /setup/dbinit.completed ]; then cd /setup /venv/bin/ansible-playbook -i inventory dbinit.yml - if [ "$?" != "0" ]; then + if [ "$?" !...
bash
d_bash_8168
--- +++ @@ -13,6 +13,12 @@ log_group_name = /var/log/messages log_stream_name = {instance_id} datetime_format = %b %d %H:%M:%S + +[/var/log/buildkite-agent.log] +file = /var/log/buildkite-agent.log +log_group_name = /var/log/buildkite-agent.log +log_stream_name = {instance_id} +datetime_format = %Y-%m-%d %H:%M:%S ...
bash
d_bash_8169
--- +++ @@ -18,7 +18,7 @@ # Push to docker hub docker push $DOCKER_REPOSITORY:$COMMIT -GIT_TAG="$(git describe --tags --exact-match $GIT_COMMIT 2> /dev/null)" +GIT_TAG="$(git describe --tags --exact-match $GIT_COMMIT 2> /dev/null || true)" if [[ ! -z $GIT_TAG ]]; then docker tag -f $FROM_DOCKER_REPOSITORY:$...
bash
d_bash_8170
--- +++ @@ -44,12 +44,6 @@ # Install pa11y tool for web accessibility checks npm install -g pa11y -# Perl Packages -############################################################################### - -# Setup cpan and install packages for irssi -cpan Lingua::Ispell - # Haskell Packages ###########################...
bash
d_bash_8171
--- +++ @@ -1,17 +1,6 @@ # Outputs list of PIDs if processes are running - -# pgrep shipped by OSX is not able to deal with large a argument list and -# you should brew install proctools instead -if [ $(uname -s) = 'Darwin' ]; then - if [ -f /usr/local/bin/pgrep ]; then - TMUX_POWERLINE_SEG_PROCESS_CMD_DEFA...
bash
d_bash_8172
--- +++ @@ -5,8 +5,8 @@ # set -evx -VERSION=$(cat VERSION) -sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"${VERSION}\"/" lib/chef_fixie/version.rb + +sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/chef_fixie/version.rb # Once Expeditor finshes executing this script, it will commit...
bash
d_bash_8173
--- +++ @@ -9,7 +9,7 @@ cargo test --features "test" --all "$@" cargo test --features "test" --all --bins "$@" cargo test --features "test" --all --examples "$@" - cargo test --features "test" --benches "$@" -- --test + cargo test --features "test" --all --benches "$@" -- --test cargo test -...
bash
d_bash_8174
--- +++ @@ -19,7 +19,7 @@ . config/android-settings.sh -echo y | android update sdk --no-ui --all --filter build-tools-20.0.0 +echo y | android update sdk --no-ui --all --filter build-tools-21.1.1 echo y | android update sdk --filter sys-img-armeabi-v7a-$DEVICE_OS_VERSION --no-ui --force --all echo no | androi...
bash
d_bash_8175
--- +++ @@ -9,10 +9,13 @@ # About `Python`, JDK, and `Haskell platform`: I choose to install them by the official installers. -brew install git tmux chicken clisp rlwrap smlnj ocaml opam cask leiningen pkg-config bash-completion gcc freetype vim wget +brew install git tmux chicken clisp rlwrap smlnj ocaml opam c...
bash
d_bash_8176
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash -eux create_vagrantfile_linux() { +vagrant plugin list | grep vagrant-serverspec && echo "vagrant-serverspec installed" || vagrant plugin install vagrant-serverspec cat << EOF > $tmp_path/Vagrantfile Vagrant.configure('2') do |config| config.vm.box = '$box_name'
bash
d_bash_8177
--- +++ @@ -18,8 +18,8 @@ W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g') if [ "$W" -a "$TXT" ]; then echo "${WHO_COLOR}${W}${COLON_COLOR}: ${TEXT_COLOR}“${TXT}”${END_COLOR}" - else - quote + # else + # quote fi } ...
bash
d_bash_8178
--- +++ @@ -2,5 +2,3 @@ sudo apk update && sudo apk upgrade sudo apk add build-base m4 git zip perl ncurses autoconf automake libtool linux-headers -wget 'https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=misc/sys/queue.h;hb=HEAD' -O queue.h -sudo mv queue.h /usr/include/sys/
bash
d_bash_8179
--- +++ @@ -18,8 +18,8 @@ echo "Staging $stageVersion (next version will be $nextVersion)" set_revision_to_pom "$stageVersion" -git config user.name "Spring Buildmaster" > /dev/null -git config user.email "spring-buildmaster@users.noreply.github.com" > /dev/null +git config user.name "Spring Builds" > /dev/null +...
bash
d_bash_8180
--- +++ @@ -1,14 +1,15 @@ #! /bin/sh tiipclad_daemon=/usr/bin/__LAD_DAEMON__ -tiipclad_params=lad.txt +tiipclad_params="-l lad.txt" test -x "$tiipclad_daemon" || exit 0 case "$1" in start) echo -n "Starting tiipclad daemon" - start-stop-daemon --start --quiet --exec $tiipclad_daemon $tiipclad_par...
bash
d_bash_8181
--- +++ @@ -1,17 +1,15 @@ #!/bin/sh -e -TILE_DIR=$1 -POOL_DIR=$2 +TILE_DIR="$( cd "$1" && pwd )" +POOL_DIR="$( cd "$2" && pwd )" MY_DIR="$( cd "$( dirname "$0" )" && pwd )" REPO_DIR="$( cd "${MY_DIR}/../.." && pwd )" BASE_DIR="$( cd "${REPO_DIR}/.." && pwd )" TEST_DIR="$( cd "${REPO_DIR}/ci/deployment-tests"...
bash
d_bash_8182
--- +++ @@ -16,13 +16,12 @@ SBT_GHPAGES_COMMIT_MESSAGE=$(gh_pages_commit_message) export SBT_GHPAGES_COMMIT_MESSAGE +sbt ";makeSite" + +checkPublishable "ghPages" + # Add secret deploy key to ssh-agent for deploy eval "$(ssh-agent -s)"; openssl aes-256-cbc -d -K $encrypted_8735ae5b3321_key -iv $encrypted_8735a...
bash
d_bash_8183
--- +++ @@ -31,6 +31,4 @@ popd -dotnet restore csharp/src -dotnet build csharp/src/NodaTime.TzValidate.ZicDump -dotnet run -p csharp/src/NodaTime.TzValidate.ZicDump -- -s $OUTDIR/data -v $1 -o $OUTDIR/tzdata$1.txt +dotnet run -p csharp/NodaTime.TzValidate.ZicDump -- -s $OUTDIR/data -v $1 -o $OUTDIR/tzdata$1.txt
bash
d_bash_8184
--- +++ @@ -10,20 +10,24 @@ # * IMAGEMAGICK_VERSION # IMAGEMAGICK_VERSION=${IMAGEMAGICK_VERSION:="7.0.5-2"} +IMAGEMAGICK_DIR=${IMAGEMAGICK_DIR:=$HOME/cache/imagemagick-$IMAGEMAGICK_VERSION} set -e -IMAGEMAGICK_DIR=${IMAGEMAGICK_DIR:=$HOME/imagemagick} -CACHED_DOWNLOAD="${HOME}/cache/ImageMagick-${IMAGEMAGICK_VE...
bash
d_bash_8185
--- +++ @@ -5,6 +5,15 @@ ./sbt.sh clean assembly cd release + +if [[ "$GITBUCKET_VERSION" =~ -SNAPSHOT$ ]]; then + MVN_DEPLOY_PATH=mvn-snapshot +else + MVN_DEPLOY_PATH=mvn +fi + +echo $MVN_DEPLOY_PATH + mvn deploy:deploy-file \ -DgroupId=gitbucket\ -DartifactId=gitbucket-assembly\ @@ -12,4 +21,4 @@ -D...
bash
d_bash_8186
--- +++ @@ -19,7 +19,7 @@ rustdoc -o target/doc/$target --target $target src/lib.rs --cfg dox \ --crate-name libc - echo "<li><a href="/libc/$target/libc/index.html">$target</a></li>" \ + echo "<li><a href="$target/libc/index.html">$target</a></li>" \ >> target/doc/index.html done
bash
d_bash_8187
--- +++ @@ -3,6 +3,6 @@ PORT="3013" SERVER="0" -JSON="{\"script\":\"$script_type\",\"pub\":\"$trusted_ip\",\"cn\":\"$common_name\"\"user\":\"$username\",\"vpn\":\"$ifconfig_pool_remote_ip\"}" +JSON="{\"script\":\"$script_type\",\"pub\":\"$trusted_ip\",\"cn\":\"$common_name\",\"user\":\"$username\",\"vpn\":\"$ifco...
bash
d_bash_8188
--- +++ @@ -1,5 +1,5 @@ if [ "$SCRIPTS_MODE" = true ] ; then - find ${project.name}/scripts -type f -exec /${project.name}/bin/${project.name} cli '{}' ';' + find scripts/${project.name} -type f -exec /${project.name}/bin/${project.name} cli '{}' ';' else find ${project.name}/plugins -name "*.jar" -type ...
bash
d_bash_8189
--- +++ @@ -15,7 +15,9 @@ fonts-font-awesome rxvt-unicode python3-pip - +pandoc +texlive-latex-base +texlive-fonts-recommended libxml2-dev libxslt1-dev zlib1g-dev
bash
d_bash_8190
--- +++ @@ -5,7 +5,29 @@ include props.util.PropsUtil +include string.validator.StringValidator + PropsWriter(){ + _disableProps(){ + local property=$(PropsUtil getProperty ${1} ${2}) + + if [[ ${property} && ! $(StringValidator + beginsWith "#" ${property}) ]]; then + + FileIOUtil replace ${1} ${property...
bash
d_bash_8191
--- +++ @@ -3,6 +3,10 @@ alias gitpr="source d:/git-tools/git-pull-request/git-pull-request.sh" source "c:/users/liferay/.bashrc" source "d:/git-tools/git-pull-request/git-pull-request.sh" + } + + getOS(){ + echo ${OS} } timestamp(){
bash
d_bash_8192
--- +++ @@ -1,4 +1,7 @@ #!/bin/bash -xue + +EXCLUDES='test_get_object_after_expiry_time|test_get_object_at_expiry_time' + TEMPEST_DIR=/opt/stack/tempest sudo pip install -r $TEMPEST_DIR/requirements.txt @@ -10,5 +13,5 @@ fi set +e -nosetests -w $TEMPEST_DIR/tempest/api/object_storage --exe --exclude='test_ge...
bash
d_bash_8193
--- +++ @@ -8,7 +8,7 @@ exit 0 fi -PYPY_VERSION=2.4.0 +PYPY_VERSION=5.1.0 if [[ -e $HOME/pypy-$PYPY_VERSION-linux64.tar.bz2 ]]; then tar -xjf $HOME/pypy-$PYPY_VERSION-linux64.tar.bz2
bash
d_bash_8194
--- +++ @@ -9,6 +9,7 @@ # Install useful yum repos yum install -y https://s3.amazonaws.com/archive.zfsonlinux.org/epel/zfs-release$(rpm -E %dist).noarch.rpm yum install -y epel-release +yum install -y https://s3.amazonaws.com/clusterhq-archive/centos/clusterhq-release$(rpm -E %dist).noarch.rpm # Install package...
bash
d_bash_8195
--- +++ @@ -8,7 +8,7 @@ WPID=$!; echo "Starting Cloud Debugger..." -php -d auto_prepend_file='' -d disable_functions='' /srv/vendor/bin/google-cloud-debugger -s /workspace & +php -d auto_prepend_file='' -d disable_functions='' /srv/vendor/bin/google-cloud-debugger -s /tmp/srv & DPID=$1; echo "Wuhoo! Environme...
bash
d_bash_8196
--- +++ @@ -8,16 +8,17 @@ # npm default global packages packages=( + bower + forever grunt-cli gulp http-server + jasmine + jshint + node-inspector + nodemon uglify-js - jshint yo - bower - node-inspector - forever - nodemon ) npm install -g ${packages[@]}
bash
d_bash_8197
--- +++ @@ -24,7 +24,7 @@ else curl -s https://${LICENSE_KEY}:@packagecloud.io/install/repositories/StackStorm/${REPO}/script.rpm.sh | sudo bash sudo yum install -y st2flow - sudo yum isntall -y st2-auth-ldap + sudo yum install -y st2-auth-ldap fi sudo st2ctl restart
bash
d_bash_8198
--- +++ @@ -3,4 +3,4 @@ set -e docker build -t openroad/openroad --target base-dependencies . echo "User is ${USER} $(id -u ${USER})" -docker run -u ${USER} -v $(pwd):/OpenROAD openroad/openroad bash -c "./OpenROAD/jenkins/install.sh" +docker run -u $(id -u ${USER}):$(id -g ${USER}) -v $(pwd):/OpenROAD openroad/op...
bash
d_bash_8199
--- +++ @@ -15,9 +15,6 @@ # limitations under the License. echo "#define JERRY_MCU_SCRIPT \\" > $2 -cat $1 | while read line -do - line=$(echo $line | sed 's/"/\\"/g') - echo "\"$line\n\" \\" >> $2 -done +# escape all " characters, wrap each line in double quotes and end the line with '\' +sed 's/"/\\"/g' $1 | ...
bash