document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_19000
--- +++ @@ -16,7 +16,7 @@ . "$(dirname "$0")/bazel-common.sh" -VERSION="nightly-$(date +%F)-$(git rev-parse --short @)" +VERSION="nightly-$(date +%F-%H)-$(git rev-parse --short @)" BAZEL_ARGS+=(-c opt) BUCKET=kythe-releases
bash
d_bash_19001
--- +++ @@ -23,4 +23,5 @@ done echo +commit="$(git log -1 --format='format:%H' onbuild)" echo "onbuild: ${url}@${commit} onbuild"
bash
d_bash_19002
--- +++ @@ -1,6 +1,12 @@ #!/bin/sh NAME=asf.cov -lcov --quiet --base-directory . --directory . -c --include "*/ada-asf/src/*" -o $NAME +lcov --quiet --base-directory . --directory . -c -o $NAME +lcov --quiet --remove $NAME "/usr*" -o $NAME +lcov --quiet --remove $NAME "/build*" -o $NAME +lcov --quiet --remove $NAME...
bash
d_bash_19003
--- +++ @@ -3,4 +3,5 @@ CONTAINER_ID=`cat container.id` docker stop $CONTAINER_ID docker rm $CONTAINER_ID +docker pull jautero/hopperbot docker run -d -v $PWD/config:/app/config --network web jautero/hopperbot python HopperBot.py >container.id
bash
d_bash_19004
--- +++ @@ -5,6 +5,9 @@ #Establish all the domains we know about from configuration -cat data/sites/*$sitefocus* data/transition-sites/*$sitefocus* | grep -o -i -E '[a-zA-Z0-9-]*\.[a-zA-Z0-9-]*\.?[a-zA-Z0-9-]*\.?[a-zA-Z0-9-]*\.?[a-zA-Z0-9-]{1,61}\.\w{2,6}' | sort | uniq +cat data/sites/*$sitefocus* data/transiti...
bash
d_bash_19005
--- +++ @@ -28,6 +28,8 @@ sudo chown -R $owner:stack $TACKER_DIR +cd $TACKER_DIR + # Run functional tests echo "Running Tacker $VENV test suite" source $DEVSTACK_DIR/openrc admin admin
bash
d_bash_19006
--- +++ @@ -1,15 +1,15 @@ #!/bin/bash set -eo pipefail . ./.cicd/helpers/general.sh -. $HELPERS_DIR/file-hash.sh $CICD_DIR/platforms/${IMAGE_TAG}.dockerfile +. $HELPERS_DIR/file-hash.sh $CICD_DIR/platforms/$PLATFORM_TYPE/$IMAGE_TAG.dockerfile # look for Docker image echo "+++ :mag_right: Looking for $FULL_TAG" ...
bash
d_bash_19007
--- +++ @@ -8,7 +8,7 @@ echo "DEL fortunes" | redis-cli echo "RPUSH fortunes 'fortune: No such file or directory' \ -\"A computer scientist is someone who fixes things that aren''t broken.\" \ +\"A computer scientist is someone who fixes things that aren't broken.\" \ 'After enough decimal places, nobody gives a...
bash
d_bash_19008
--- +++ @@ -1,6 +1,8 @@ MY_DIR="$HOME/src" REP="making-sense-feedback-app" + +DEST_DIR=/var/www/airq echo "Checking out ${REP} in ${MY_DIR}" @@ -28,13 +30,16 @@ cd .. -sudo rm -rf /var/www/airq +echo "Remove ${DEST_DIR}" +sudo rm -rf ${DEST_DIR} -sudo mkdir /var/www/airq +echo "Make ${DEST_DIR}" +sudo...
bash
d_bash_19009
--- +++ @@ -6,10 +6,23 @@ set -e -if [ ! -r deps/dfxml/python/dfxml.py -o ! -r deps/sleuthkit/configure.ac -o ! -r deps/py360/report360.py -o ! -r deps/upartsfs/configure.ac ]; then +if [ ! -r deps/dfxml/python/dfxml.py -o \ + ! -r deps/sleuthkit/configure.ac -o \ + ! -r deps/py360/report360.py -o \ + ! -r de...
bash
d_bash_19010
--- +++ @@ -2,6 +2,6 @@ nohup /usr/bin/Xvfb :99 -ac -screen 0 1280x720x24 & export DISPLAY=:99 -yarn --no-progress -npm rebuild node-sass -exec yarn ng test -- --watch=false -cc --no-progress +#yarn --no-progress +#npm rebuild node-sass +exec yarn ng test --watch=false -cc --no-progress
bash
d_bash_19011
--- +++ @@ -1,5 +1,11 @@ -# get the name of the branch we are on +# load RVM +[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm + +# get the name of the ruby version function rvm_prompt_info() { - ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return - [[ ! -z $ruby_version ]] && echo "($ruby...
bash
d_bash_19012
--- +++ @@ -10,11 +10,14 @@ readonly BASH_DIR=~/src/languages/bash-4.4 bash-files() { + # NOTE: .def files are builtins + find $BASH_DIR \ \( -name 'y.tab.c' -a -prune \) -o \ \( -name 'readline' -a -prune \) -o \ \( -name parse.y -a -print \) -o \ - \( -name '*.[ch]' -a -print \) + \( -n...
bash
d_bash_19013
--- +++ @@ -20,7 +20,6 @@ if [[ "${DEPLOY_JAR:-NO}" == "YES" ]]; then printf "\n============ We push to S3\n" - cd - echo "=====> Libcore version : $LIB_VERSION" echo "======= Pushing to S3 =========="
bash
d_bash_19014
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash if [[ "$COMPILER" == "Emscripten" ]]; then + docker pull thewtex/cross-compiler-browser-asmjs CMAKE_TOOLCHAIN_FILE=`docker inspect --format='{{range .Config.Env}}{{println .}}{{end}}' thewtex/cross-compiler-browser-asmjs | grep CMAKE_TOOLCHAIN_FILE | sed 's/^.*=//'` expo...
bash
d_bash_19015
--- +++ @@ -2,12 +2,12 @@ # 01_sip_dialplan.xml FILE="dialplan/public/01_sip_dialplan.xml" -sed -i 's/{{number}}/'"$SIP_NUMBER"'/' "$FILE" +sed -i 's/{{number}}/'"$SIP_NUMBER"'/g' "$FILE" # sip.xml FILE="sip_profiles/external/sip.xml" -sed -i 's/{{username}}/'"$SIP_USERNAME"'/' "$FILE" -sed -i 's/{{password}}...
bash
d_bash_19016
--- +++ @@ -2,7 +2,7 @@ set -e if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then - mvn deploy --settings deploy-settings.xml -Dmaven.test.skip=true; + mvn deploy --settings deploy-settings.xml -P release -Dmaven.test.skip=true; RESTHEART_VERSION=$(./bin/project-version.sh 2>/dev/null); export RESTHEA...
bash
d_bash_19017
--- +++ @@ -20,4 +20,5 @@ docker run -d --name "$name" --volumes-from "$name-data" repo-info > /dev/null +echo '# `'"$image"'`' docker logs -f "$name"
bash
d_bash_19018
--- +++ @@ -3,7 +3,9 @@ aws s3 cp --region eu-west-1 s3://aluxian/sshkeys/aur ~/.ssh/aur aws s3 cp --region eu-west-1 s3://aluxian/sshkeys/aur.pub ~/.ssh/aur.pub +chmod 600 ~/.ssh/aur touch ~/.ssh/config + echo "Host aur.archlinux.org" >> ~/.ssh/config echo " IdentityFile ~/.ssh/aur" >> ~/.ssh/config echo " ...
bash
d_bash_19019
--- +++ @@ -12,7 +12,7 @@ echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.1%2B7/OpenJDK14U-jdk_x64_linux_hotspot_14.0.1_7.tar.gz" ;; java15) - echo "https://download.java.net/java/early_access/jdk15/24/GPL/openjdk-15-ea+24_linux-x64_bin.tar.gz" + echo "https://download...
bash
d_bash_19020
--- +++ @@ -2,16 +2,11 @@ # Run the translate over all inputfiles in src/test/resources/sitelog and output to /tmp/geodesyml/runall INPUTDIR=src/test/resources/sitelog -OUTPUTDIR=/tmp/geodesyml/runall +OUTPUTDIR=src/test/resources/sitelog/sitelogtoGeodesyML +OUTPUTDIRTMP=/tmp/geodesyml/runall if [ ! -d $OUTPUT...
bash
d_bash_19021
--- +++ @@ -20,6 +20,6 @@ cp ${BIN_DIR}/acceptance-tests.sh . git add acceptance-tests.sh -git commit -m "set image to ${DOCKER_IMAGE_TAG} in ${CLUSTERS}" || echo "nothing new to commit" +git commit -m "set ${NAMESPACE} image to ${DOCKER_IMAGE_TAG} in ${CLUSTERS}" || echo "nothing new to commit" git push popd
bash
d_bash_19022
--- +++ @@ -19,6 +19,6 @@ # Per https://github.com/MariaDB/mariadb-docker/issues/434, mariadb must be # pulled from own mariadb quay.io docker pull quay.io/mariadb-foundation/mariadb-devel:10.7 - docker tag docker.io/library/mariadb-devel:10.7 ${cr_server}/wikipedialibrary/mariadb-devel:10.7 + docker tag q...
bash
d_bash_19023
--- +++ @@ -6,3 +6,4 @@ systemctl enable redis echo "Configuration: /etc/redis.conf" +semanage port -m -t http_port_t -p tcp 6379
bash
d_bash_19024
--- +++ @@ -2,6 +2,15 @@ mkdir -p temp sudo chown -R $USER. temp cd temp +if [[ -n "$(python -mplatform | grep debian-7)" && -f ./ncurses-6.0/install/lib/libncursesw.so.6.0 ]]; then + wget http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz + tar -xzvf ncurses-6.0.tar.gz + cd ncurses-6.0 + ./configure --...
bash
d_bash_19025
--- +++ @@ -14,9 +14,9 @@ mkdir .travis_build cd .travis_build git clone "https://${GH_TOKEN}@${GH_REF}" +cd widgets git config user.name "ZeusJS Build Bot" git config user.email "zeusjs.bot@gmail.com" -cd widgets npm install --quiet -g grunt-cli karma npm install grunt build
bash
d_bash_19026
--- +++ @@ -1,3 +1,3 @@ #!/bin/sh mkdir -p ../../../out/target/product/d10f/obj/BOOTLOADER_EMMC_OBJ -make PROJECT=msm8226 BOOTLOADER_OUT=../../../out/target/product/d10f/obj/BOOTLOADER_EMMC_OBJ EMMC_BOOT=1 +make DEBUG=2 PROJECT=msm8226 BOOTLOADER_OUT=../../../out/target/product/d10f/obj/BOOTLOADER_EMMC_OBJ EMMC_BOO...
bash
d_bash_19027
--- +++ @@ -5,7 +5,7 @@ LS_COLORS=$LS_COLORS:'di=0;35:' ; export LS_COLORS export PAGER=less export EDITOR=vim -alias grepc="grep -nrP --color=always" +alias grepc="grep -nr --color=always" source "${DOTFILES_DIR}aliases_shared.bash"
bash
d_bash_19028
--- +++ @@ -23,5 +23,5 @@ else playlist="BBC Radio $station" fi - curl -X POST -d "path=WEBRADIO/$playlist.m3u" "$MUSIC_HOST/db/?cmd=addplay" + curl -X POST -d "path=BBCRADIO/$playlist.m3u" "$MUSIC_HOST/db/?cmd=addplay" }
bash
d_bash_19029
--- +++ @@ -6,7 +6,7 @@ LOCATION=$2 AMENITY=$3 -echo 'Parsing file' $FILE 'for amenity='$AMENITY' in '$LOCATION '...' +echo 'Extracting amenity='$AMENITY' in '$LOCATION' from '$FILE'...' osmosis -q --read-pbf $FILE --tf accept-ways amenity=$AMENITY --tf reject-relation --tf reject-nodes --used-node --write-xml...
bash
d_bash_19030
--- +++ @@ -35,7 +35,7 @@ cd "$dir" fold "git.sass-spec" \ - git clone git://github.com/sass/sass-spec --branch dart-sass --depth 1 + git clone git://github.com/sass/sass-spec --branch dart-sass-old --depth 1 cd sass-spec fold "bundle" bundle install --jobs=3 --retry=3
bash
d_bash_19031
--- +++ @@ -4,13 +4,17 @@ export LS_COLORS # Enable ls colors -if [ "$DISABLE_LS_COLORS" != "true" ] -then +if [ "$DISABLE_LS_COLORS" != "true" ]; then # Find the option for using colors in ls, depending on the version: Linux or BSD ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='...
bash
d_bash_19032
--- +++ @@ -15,10 +15,10 @@ rp_module_flags="!x86 !x11 !mali" function sources_sorr() { - gitCloneOrPull "$md_build" https://github.com/zerojay/bennugd.git + gitPullOrClone "$md_build" https://github.com/zerojay/bennugd.git } -function install_sorr() { +function install_sorr() { md_ret_files=( ...
bash
d_bash_19033
--- +++ @@ -10,8 +10,9 @@ # gawk: used by building glibc # rpm: rpmbuild to build rpm package # alien, fakeroot, debhelper: convert rpm package to debian package +# python: 2to3 apt-get install -y texinfo texi2html xz-utils make gcc g++ gawk \ - rpm alien fakeroot debhelper + rpm alien fakeroot debhelper py...
bash
d_bash_19034
--- +++ @@ -3,6 +3,3 @@ mkdir -p Native browserify wrapper.js -o Native/Html.js echo ";" >> Native/Html.js -elm --make --bundle-runtime --only-js examples/todo/Todo.elm -mv build/examples/todo/Todo.js examples/todo/todo.js -rm -rf build
bash
d_bash_19035
--- +++ @@ -6,4 +6,4 @@ export SITE_DIR=$PWD/dita-ot.github.io # run site generation into -gradle -b site.gradle -Ddita.home=$DITA_HOME -Doutput.dir=$SITE_DIR/dev --info --stacktrace --no-daemon +./gradlew -b site.gradle -Ddita.home=$DITA_HOME -Doutput.dir=$SITE_DIR/dev --info --stacktrace --no-daemon
bash
d_bash_19036
--- +++ @@ -3,7 +3,7 @@ export LSTACK_OSRELEASE=${LSTACK_OSRELEASE:-juno} lstack(){ - sudo ./lstack --nocolor --nonyancat $@ + sudo ./lstack --nocolor $@ } container_name(){
bash
d_bash_19037
--- +++ @@ -1,4 +1,6 @@ #! /usr/bin/env bash + +set -e current_version=`python setup.py --version`
bash
d_bash_19038
--- +++ @@ -16,6 +16,9 @@ J2OBJC_PATH=j2objc-${J2OBJC_VERSION} mkdir dist -mv $J2OBJC_PATH/include dist -mv $J2OBJC_PATH/lib dist +mv $J2OBJC_PATH/include \ + $J2OBJC_PATH/lib \ + $J2OBJC_PATH/j2objc \ + $J2OBJC_PATH/j2objcc \ + dist rm j2objc-${J2OBJC_VERSION}.zip
bash
d_bash_19039
--- +++ @@ -30,6 +30,6 @@ if [ $ran -eq 1 ]; then git reset --hard if [ $shutdown = "yes" ]; then - sudo shutdown -h now + sudo poweroff fi fi
bash
d_bash_19040
--- +++ @@ -9,3 +9,6 @@ # Create private ssh key if it doesn't exist yet ls .ssh | grep -q id_rsa || ssh-keygen -b 2048 -t rsa -f .ssh/id_rsa -q -N '' + +# Enable ansible keys from vagrant host +ln -sf $(pwd)/.ssh ../.ssh
bash
d_bash_19041
--- +++ @@ -1,12 +1,10 @@ eval "$(npm completion 2>/dev/null)" - - -# npm package names are lowercase -# - https://twitter.com/substack/status/23122603153150361 -# Thus, we've used camelCase for the following aliases: # Install dependencies globally alias npmg="npm i -g " + +# npm package names are lowercase +# ...
bash
d_bash_19042
--- +++ @@ -11,14 +11,35 @@ ########################### # Alias +# CAT, GREP + alias y='"$GREP" -i' alias n='"$GREP" -vi' +alias c='cat' +alias w='cat >' +alias a='cat >>' + +# XARGS + alias x='xargs' + alias xy='xargs "$GREP" -i' alias xn='xargs "$GREP" -iv' +alias xc='xargs cat' +alias xw='xargs cat >'...
bash
d_bash_19043
--- +++ @@ -4,7 +4,7 @@ for file in $dir/*.symlink; do echo "Creating symlink to $file in home directory." filename=${file##*/} - ln -sf $file ~/.${filename%.symlink} + ln -sfn $file ~/.${filename%.symlink} done # Homebrew setup, if OSX
bash
d_bash_19044
--- +++ @@ -25,10 +25,10 @@ PID=`echo $PID_INFO | cut -d " " -f2` kill -15 $PID -cmd_output=$(jps|grep $PID) +cmd_output=$(jps|grep "^$PID\s") while [ ${#cmd_output} -ne 0 ] do sleep 1 kill -15 $PID - cmd_output=$(jps|grep $PID) + cmd_output=$(jps|grep "^$PID\s") done
bash
d_bash_19045
--- +++ @@ -2,8 +2,11 @@ set -e set -x +# Fix GPG Keys. +curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - + # The same set of packages need to be installed both on the instance and within the container. -PACKAGES="systemd-container git debootstrap build-essential libosmesa-dev libf...
bash
d_bash_19046
--- +++ @@ -28,7 +28,8 @@ # local branch git checkout $branch else - # remote branch + # remote branch, need to pull to make sure it is known + git pull git checkout -b $branch origin/$branch fi
bash
d_bash_19047
--- +++ @@ -2,30 +2,32 @@ local _sublime_darwin_paths > /dev/null 2>&1 _sublime_darwin_paths=( - "/usr/local/bin/subl" - "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" - "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" - "/Applications/Sublime Text 2.app/Contents/Shar...
bash
d_bash_19048
--- +++ @@ -1,6 +1,6 @@ # Generate docs. -mkdir -p public/api +#mkdir -p public/api python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
bash
d_bash_19049
--- +++ @@ -26,8 +26,7 @@ # Asked to do a buildifier run. if [[ -n "${BUILDIFER:-}" ]]; then # bazelbuild/buildtools/issues/220 - diff doesn't include the file that needs updating - # bazelbuild/buildtools/issues/221 - the exist status is always zero. - if [[ -n "$(find . -name BUILD -print | xargs buildifier ...
bash
d_bash_19050
--- +++ @@ -4,8 +4,17 @@ # TODO: use the published version of opam-build-revdeps opam pin add opam-build-revdeps \ git://github.com/gildor478/opam-build-revdeps.git#opam/unstable +# TODO: un-exclude when upgrading to Debian Stretch +# - maxminddb +# - brotli opam-build-revdeps compare --package oasis \ + --onl...
bash
d_bash_19051
--- +++ @@ -1,12 +1,10 @@ #!/bin/bash gearcmd --name oplog-dump --cmd /usr/local/bin/oplogdump --host $GEARMAN_HOST --port $GEARMAN_PORT & pid=$! -# When we get a SIGTERM kill the child process and call wait. Note that we need wait both here -# and the line below because of the semantics of the kill syscall. As I ...
bash
d_bash_19052
--- +++ @@ -4,6 +4,7 @@ ROOT=$( cd $( dirname "${BASH_SOURCE[0]}" ) && cd .. && pwd ) RET_CODE=1 +CASPER_RET_CODE=0 cd $ROOT @@ -34,7 +35,9 @@ ./scripts/masctl status --configFile test/mas-test.conf # OR part is needed because of set -e -casperjs test --engine=slimerjs --verbose $ROOT/test/integration/te...
bash
d_bash_19053
--- +++ @@ -4,7 +4,9 @@ source $SCRIPTS_FOLDER/util.sh # replace @ASSET_HASH in files of the following folder -egrep -lRZ "@ASSET_HASH" $ASSET_HASH_TEMPLATE_REPLACE_PATH | xargs --null sed -i "s/@ASSET_HASH/$ASSET_HASH/g" +if [ ! -z $ASSET_HASH_TEMPLATE_REPLACE_PATH ]; then + egrep -lRZ "@ASSET_HASH" $ASSET_H...
bash
d_bash_19054
--- +++ @@ -1,6 +1,6 @@ function download_crystal() { # If a previous download does not exist, then always re-download - if [ ${force_fetch} = true ] || [ ! -f ${crystal_path}/$(crystal_download_file) ]; then + if [[ ${force_fetch} = true ]] || [ ! -f ${crystal_path}/$(crystal_download_file) ]; then clean_...
bash
d_bash_19055
--- +++ @@ -1,7 +1,9 @@ #!/bin/bash -mkdir -p logs +BASEDIR=$(dirname "$0") + +mkdir -p $BASEDIR/logs log_file=$(date "+%Y_%m_%d-%H_%M_%S") echo '[*] Sniffer has been deployed.' -env/bin/python sniff.py 2>&1 | tee logs/$log_file.log +$BASEDIR/env/bin/python $BASEDIR/sniff.py 2>&1 | tee $BASEDIR/logs/$log_file....
bash
d_bash_19056
--- +++ @@ -6,13 +6,14 @@ #export PACK_VERSION if [[ -d "release-artifacts" ]]; then - export BP_PACKAGED_PATH="$(realpath "$(find release-artifacts -name "*.tgz")")" + BP_PACKAGED_PATH="$(realpath "$(find release-artifacts -name "*.tgz")")" + export BP_PACKAGED_PATH echo "${BP_PACKAGED_PATH}" fi ...
bash
d_bash_19057
--- +++ @@ -1,18 +1,42 @@ +include base.comparator.BaseComparator + include string.util.StringUtil - -include system.validator.SystemValidator +include string.validator.StringValidator FileNameUtil(){ - getPath(){ + _getPathUnix(){ local path=${1} - if [[ $(SystemValidator isWindows) ]]; then + if [[ $(Str...
bash
d_bash_19058
--- +++ @@ -9,7 +9,7 @@ WORK_DIR=$(mktemp -d -t $JLAB_REL_ENV) cd $WORK_DIR - conda create --override-channels --strict-channel-priority -c conda-forge -c anaconda -y -n $JLAB_REL_ENV notebook nodejs twine + conda create --override-channels --strict-channel-priority -c conda-forge -c anaconda -y -n ...
bash
d_bash_19059
--- +++ @@ -1,18 +1,11 @@ #!/bin/false -TABLE="$(fdisk -l "$IMG_FILE" | grep "^$IMG_FILE")" - -test 2 -eq $(echo "$TABLE" | wc -l) - -TABLE="$(echo "$TABLE" | sed "s|^$IMG_FILE. ||")" - -echo '--- table ---' -echo "$TABLE" | while read -r line; do echo $line; done - -STARTS=$(echo "$TABLE" | while read -r line; do...
bash
d_bash_19060
--- +++ @@ -13,3 +13,28 @@ function autotitle_enable { DISABLE_AUTO_TITLE=false } + +# Quote a terminal escape string, terminfo-style +# This makes control sequences from $terminfo readable +# +# Example: +# tiquote $terminfo[kcuu1] +function tiquote { + emulate -L zsh + local str out i ch + local ESC=$'\033...
bash
d_bash_19061
--- +++ @@ -10,7 +10,7 @@ function install_uid() { local INSTALLPATH=$HOME/.wtd/ local SOURCEPATH=$PWD/dist/ - mkdir $INSTALLPATH + mkdir -p $INSTALLPATH cp $SOURCEPATH/wtd-bash-prompt.sh $INSTALLPATH echo ". $HOME/.wtd/wtd-bash-prompt.sh" >> $HOME/.bashrc }
bash
d_bash_19062
--- +++ @@ -1,9 +1,6 @@ #!/bin/bash # This script runs the tests on Heroku CI -git clone -b "$HEROKU_TEST_RUN_BRANCH" --single-branch https://github.com/SFDO-Tooling/MetaCI MetaCI_checkout -cd MetaCI_checkout -git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION export DJANGO_SETTINGS_MODULE=config.settings.test ...
bash
d_bash_19063
--- +++ @@ -9,4 +9,3 @@ install_pip_pkg virtualenv install_pip_pkg flake8 -install_pip_pkg bump-anything
bash
d_bash_19064
--- +++ @@ -20,7 +20,7 @@ #databases brew cask install mongodb brew cask install robomongo -brew install sqlitebrowser +brew cask install sqlitebrowser #install NVM to enable
bash
d_bash_19065
--- +++ @@ -14,5 +14,5 @@ virtualenv .env3.3 --python=python3.3 . .env3.3/bin/activate export PYTHONPATH=$PYTHONPATH:$(pwd) -pip install django==1.6 psycopg2 django-jenkins pylint coverage pep8 pyflakes factory_boy django-celery facepy-pozytywnie==1.0.5 +pip install django==1.6 psycopg2 django-jenkins pylint cover...
bash
d_bash_19066
--- +++ @@ -5,6 +5,12 @@ git clone bosh-utils bumped-bosh-utils cd bumped-bosh-utils + +#intentionally cause an explicit commit if the underlying go version in our compiled Dockerfile changes. +#assume the go-dep-bumper and bosh-utils are bumping at the same cadence. +NEW_GO_MINOR=$(go version | sed 's/go versio...
bash
d_bash_19067
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -docker run -rm -v `pwd`/calico_containers:/code/calico_containers calico-build bash -c '/tmp/etcd -data-dir=/tmp/default.etcd/ & nosetests calico_containers/tests/unit -c nose.cfg' +docker run --rm -v `pwd`/calico_containers:/code/calico_containers calico-build bash -c '/tmp/et...
bash
d_bash_19068
--- +++ @@ -14,6 +14,8 @@ set -e; set -o pipefail PFX=${PFX:-==>} +EMAIL=${EMAIL:?} +HOME=${HOME:?} echo "$PFX Installing items common to all os versions"
bash
d_bash_19069
--- +++ @@ -18,14 +18,15 @@ mkdir "$prefix"/cross-installer && tmp="$(mktemp -d)" || exit $? local_archive="$CMD_BASE"/cross-installer.tgz - if test -s "$local_archive" ; then tar -xzf "$CMD_BASE"/cross-installer.tgz -C "$tmp" || { rm -rf "$tmp"; exit 1 ;} -elif which curl >/dev/null 2>&1 ; then +elif type ...
bash
d_bash_19070
--- +++ @@ -1,14 +1,10 @@ #!/bin/sh # Variables -S3CMD_EXE=$(which s3cmd) BUILD_DIR="./public/" S3_URL="s3://iiro.fi" # Deploy to S3 -$S3CMD_EXE sync $BUILD_DIR $S3_URL \ - --delete-removed \ - --guess-mime-type \ - --no-mime-magic \ - --no-preserve \ - --server-side-encryption +aws s3 sync $BUILD_DIR $...
bash
d_bash_19071
--- +++ @@ -9,10 +9,7 @@ fi eval $(aws s3 cp s3://${SECRETS_BUCKET_NAME}/${SECRETS_FILE_NAME} - | sed 's/^/export /') - - bundle install --deployment --without development test - - exec bundle exec ahn start > /usr/src/app/log/adhearsion.log + exec bundle install --deployment --without development test bun...
bash
d_bash_19072
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env bash sudo apt-get -qq update && -sudo apt-get -qq install libx11-xcb-dev +sudo apt-get -qq install gettext xorg-dev libx11-xcb-dev libxcb-util0-dev
bash
d_bash_19073
--- +++ @@ -1 +1,2 @@ docker build --tag carolynvs/github-release-proxy . +docker images -qf "dangling=true" | xargs docker rmi > /dev/null 2>&1
bash
d_bash_19074
--- +++ @@ -21,3 +21,5 @@ # install redis sudo apt-get install redis-server +# install redis +sudo apt-get install libmariadb-dev
bash
d_bash_19075
--- +++ @@ -3,6 +3,7 @@ revision_build=$1 VERSION=$2 final_path=$3 -sstream-query $HOME/streams/juju-dist/testing/tools/streams/v1/index.json version=$VERSION > revision-build-$revision_build.repr -ssquery_json.py revision-build-$revision_build.repr revision-build-$revision_build.json -set_stream.py revision-build...
bash
d_bash_19076
--- +++ @@ -10,6 +10,6 @@ make staticcheck fmtcheck gotest -if [[ $TRAVIS_OS_NAME == "linux" ]]; then +if [[ $TRAVIS_OS_NAME == "linux" || $TRAVIS_OS_NAME == "windows" ]]; then make integration fi
bash
d_bash_19077
--- +++ @@ -1,6 +1,7 @@ #!/usr/bin/env bash # This script checks for an recommended MySQL upgrade and update the /etc/motd # with some user information. +export HOME=/root if [ -f /var/mysql/mysql_upgrade_info ]; then # mysql_upgrade_info exists, so version check is required
bash
d_bash_19078
--- +++ @@ -23,14 +23,14 @@ # Copy VTree code (temporarily) to source directory # so that SourceKitten can find types. -mkdir -p $SOURCE_DIR/_VTreeGenerated -cp $DIR/../Sources/*.swift $SOURCE_DIR/_VTreeGenerated/ +mkdir -p "$SOURCE_DIR"/_VTreeGenerated +cp "$DIR"/../Sources/*.swift "$SOURCE_DIR"/_VTreeGenerated/...
bash
d_bash_19079
--- +++ @@ -1,10 +1,18 @@ #!/usr/bin/env bash set -x -set -e + +WEBHOOK_URL='' # Corresponding cronjob is "0 0 * * * /bin/bash /home/ubuntu/compose_setup/scripts/essnapshot_backup.sh" -curl -X PUT "localhost:9200/_snapshot/my_backup/%3Csnapshot-%7Bnow%2Fd%7D%3E" -aws s3 --endpoint-url https://object.cancercoll...
bash
d_bash_19080
--- +++ @@ -15,7 +15,5 @@ && tar zxvf fp2-sibon-2.0.1-blobs.tgz \ && yes | sh fp2-sibon-2.0.1-blobs.sh \ && source build/envsetup.sh \ -&& cp -v vendor/qcom/proprietary/target/product/FP2/obj/lib/*.so \ - ./vendor/qcom/proprietary/target/product/FP2/system/vendor/lib/ \ && choosecombo 1 FP2 2 \ && make -j...
bash
d_bash_19081
--- +++ @@ -25,7 +25,7 @@ # Get input files cp DIR/$input DIR/pdb*AF*pdb . -/diva1/home/modeller/mod9v4 - ${SGE_TASK_ID} < $input >& $output +/diva1/home/modeller/mod9v5 - ${SGE_TASK_ID} < $input >& $output # Copy back PDB cp *.B* DIR
bash
d_bash_19082
--- +++ @@ -3,6 +3,7 @@ AN_DEV_DIR=$LOCAL_DEV_DIR/anomali DROPBOX_DIR=$HOME/Dropbox alias cdbwa='cd "$DROPBOX_DIR/Documents/Writing/Build WatchKit Apps"' +alias cddh='cd $DROPBOX_DIR/Sites/deadheart.org.uk/tdh_umbrella' alias cdds='cd $DROPBOX_DIR/Sites' alias cdev='cd $DEV_DIR' alias cdevlocal='cd $LOCAL_DEV_D...
bash
d_bash_19083
--- +++ @@ -6,7 +6,7 @@ BASE_DIR=$(dirname "$(readlink -f "$0")")/.. process_cmd="node ${BASE_DIR}/src/server.js" -query_unique_pageviews="node ${BASE_DIR}/src/queryUniquePageviews($2, $3, 0).js" +query_unique_pageviews="node ${BASE_DIR}/src/queryUniquePageviews($3, $4, 0).js" case $1 in
bash
d_bash_19084
--- +++ @@ -2,6 +2,9 @@ set -o errexit +# Since mocha v4, the test runner doesn't automatically process.exit +# when it's done running. Because we're running geth as a separate client in CI, +# the provider connections stay open and everything hangs. Hence the `--exit` flag. if [ "$GETH" == true ]; then moch...
bash
d_bash_19085
--- +++ @@ -5,6 +5,11 @@ echo "Usage: $0 mir-recorder.prv" exit 1 fi + +# Get PCF file +PCF_FILE=$(basename $1 .prv).pcf +echo "Events found in PCF:" +sed -n '/EVENT_TYPE/ {n;p}' $PCF_FILE # Remove comment character sed '/^#/ d' $1 > $1.templ
bash
d_bash_19086
--- +++ @@ -1,4 +1,11 @@ #!/bin/sh git submodule update --init -svn export http://svn.boost.org/svn/boost/tags/release/Boost_1_45_0/boost + +svn export http://svn.boost.org/svn/boost/tags/release/Boost_1_46_1/boost + +if ! find boost -not -type d | sort | xargs cat | md5sum | grep -q 98826cb1403b76f279147eefb333e...
bash
d_bash_19087
--- +++ @@ -21,4 +21,14 @@ fi +# This is where brew stores its binary symlinks +local binroot="$(brew --config | awk '/HOMEBREW_PREFIX/ {print $2}')"/bin + +# htop +if [[ "$(type -P $binroot/htop)" ]] && [[ "$(stat -L -f "%Su:%Sg" "$binroot/htop")" != "root:wheel" || ! "$(($(stat -L -f "%DMp" "$binroot/htop") & ...
bash
d_bash_19088
--- +++ @@ -10,9 +10,13 @@ # install homebrew if ! command -v brew >/dev/null 2>&1; then + prefix="" + if [ "$(uname -m)" = "arm64" ]; then + # Install on Rosetta 2 + prefix="arch -arch x86_64" + fi # Install homebrew: https://brew.sh/ - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Ho...
bash
d_bash_19089
--- +++ @@ -1,7 +1,14 @@ #!/bin/bash set -e -bash /opt/docker/bin/provision.sh entrypoint + +if [ "$1" == "supervisord" ]; then + # Visible provisioning + bash /opt/docker/bin/provision.sh entrypoint +else + # Hidden provisioning + bash /opt/docker/bin/provision.sh entrypoint > /dev/null +fi ######...
bash
d_bash_19090
--- +++ @@ -1,12 +1,12 @@ -#!/bin/sh +#!/bin/sh -set -e +set -e basedir=$(dirname $0) echo "running fetcher" -ruby $basedir/fetcher.rb +ruby -W0 $basedir/fetcher.rb echo "running poster" -ruby $basedir/poster.rb +ruby -W0 $basedir/poster.rb
bash
d_bash_19091
--- +++ @@ -8,6 +8,7 @@ alias mr='mate CHANGELOG app config db lib public script spec test' alias .='pwd' alias ...='cd ../..' +alias -- -='cd -' alias _='sudo' alias ss='sudo su -'
bash
d_bash_19092
--- +++ @@ -6,5 +6,5 @@ go get -d -v go run init.go --alsologtostderr --download_browsers popd -go test -coverprofile=coverage.txt -covermode=atomic -test.v \ +go test -coverprofile=coverage.txt -covermode=atomic -test.v -timeout=20m \ --start_frame_buffer=false --test.run=TestFirefoxSelenium3
bash
d_bash_19093
--- +++ @@ -2,27 +2,32 @@ function do-apply { + rm *.patch 2>/dev/null init="$(git rev-list --max-parents=0 HEAD)" - patches="$(git format-patch ${init}..master \ - --minimal --no-add-header --no-stat \ - --no-signature --keep-subject --zero-commit)" - for name in $patches - do - ...
bash
d_bash_19094
--- +++ @@ -15,6 +15,6 @@ BASE_URI='http://localhost:8000' \ HASHIDS_SALT='DEVELOPMENT-ONLY' \ - stack exec zoomhub -- +RTS -N4 -RTS & + stack exec zoomhub -- +RTS -N2 -RTS & echo $! > zoomhub.pid
bash
d_bash_19095
--- +++ @@ -19,7 +19,7 @@ # compile the website bundle exec jekyll build -d ~/out --config _uberspace_config.yml # upload site - rsync -rq --delete ~/out $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH + rsync -rq --delete ~/out/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH else echo "NOT ON MASTER BRANCH, WILL NOT DEPLOY ...
bash
d_bash_19096
--- +++ @@ -2,17 +2,19 @@ LLVM_PATH=`llvm-config --src-root` LIBOBJC_PATH=`pwd` if [ x$LLVM_PATH != x ] ; then - cd $LLVM_PATH - cd lib/Transforms - if [ ! -d GNURuntime ] ; then - mkdir GNURuntime + if [ -d $LLVM_PATH ] ; then + cd $LLVM_PATH + cd lib/Transforms + if [ ! -d GNURuntime ] ; then + mkdir GNURu...
bash
d_bash_19097
--- +++ @@ -18,7 +18,7 @@ if [[ -n "${KOKORO_ROOT:-}" ]] ; then - cd "${KOKORO_ARTIFACTS_DIR}/git/tink" + cd "${KOKORO_ARTIFACTS_DIR}/git/tink_java" use_bazel.sh "$(cat .bazelversion)" fi
bash
d_bash_19098
--- +++ @@ -11,7 +11,7 @@ seeds_file=https://raw.githubusercontent.com/bitshares/bitshares-core/${BRANCH}/libraries/egenesis/seed-nodes.txt fi -seeds=`curl $seeds_file 2>/dev/null | tail -n "+2" | cut -f2 -d'"'` +seeds=`curl $seeds_file 2>/dev/null | grep -v '^//' | cut -f2 -d'"'` for seed in ${seeds}; do ...
bash
d_bash_19099
--- +++ @@ -3,7 +3,7 @@ # get list of available X windows. x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null` -if [ -z "$x" ] ;then +if [ -z "$x" ] || [ "$x" = "nil" ] ;then # Create one if there is no X window yet. emacsclient --alternate-editor "" --create-frame "$@" else
bash