document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_17600
--- +++ @@ -5,8 +5,19 @@ fixQmakeLibtool() { if [ -d "$1" ]; then find "$1" -name '*.la' | while read la; do + set +e + framework_libs=$(grep '^dependency_libs' "$la" | grep -Eo -- '-framework +\w+' | tr '\n' ' ') + set -e sed -i "$la" \ - -e...
bash
d_bash_17601
--- +++ @@ -1,10 +1,16 @@ #/bin/bash + ./network.sh ./docker.sh ./k8s-packages.sh # Initialise K8S Master -sudo kubeadm init +# If an parameter is specified, use it to match the desired API server subnet address (e.g. '192.168.8.0') +if [ '' != "$1" ] ; then + MASTER_IP=`ip addr show | grep "inet\b" | awk '{...
bash
d_bash_17602
--- +++ @@ -1,9 +1,12 @@ +# even more local bin directories +BIN_PATH=./.bin:./bin:$HOME/.bin:$DOT/bin +# # Ruby export RBENV_ROOT=$(brew --prefix)/var/rbenv RUBY_PATH=$RBENV_ROOT/shims -# even more local bin directories -BIN_PATH=./.bin:./bin:$HOME/.bin:$DOT/bin +# node binary directories +NODE_BIN=./node_modul...
bash
d_bash_17603
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash -yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | tr '\n' ' ') +yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | sort -r | tr '\n' ' ') -yum_available=$(yum list available -e 0 -q "$@" 2>&1 | tail ...
bash
d_bash_17604
--- +++ @@ -17,4 +17,4 @@ alias gb='git branch' alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun. alias grm="git status | grep deleted | awk '{\$1=\$2=\"\"; print \$0}' | \ - sed 's/^[ \t]*//' | sed 's/ /\\\\ /g' | xargs git rm" + perl -pe 's/^[ \t]*//' | sed 's/ /\\...
bash
d_bash_17605
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -VERSION="0.9.0.0" +VERSION="1.0.0" CLS_PATH="./build/main/jenetics-all-${VERSION}.jar:./build/main/jenetics-examples-${VERSION}.jar:." java -cp $CLS_PATH org.jenetics.examples.Knapsack
bash
d_bash_17606
--- +++ @@ -1,15 +1,30 @@ +NODE_VERSION="v0.10.24" +NODE_PLATFORM="linux" +NODE_ARCH="x64" +NODE_DOWNLOAD_URL="http://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_PLATFORM-$NODE_ARCH.tar.gz" + mkdir -p ../node -NODE_DIR=`(cd ../node && pwd)` +NODE_DIR="`(cd ../node && pwd)`" -if [ ! -e ../node/bin/npm ];...
bash
d_bash_17607
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh git clone https://github.com/libuv/libuv.git cd libuv || return -git checkout $(git describe --tags) +git checkout "$(git describe --tags)" ./autogen.sh ./configure make
bash
d_bash_17608
--- +++ @@ -3,7 +3,7 @@ set -e sudo apt-get update -sudo apt-get -y install linux-image-extra-name -r +sudo apt-get -y install linux-image-extra-name `uname -r` mount -M /mnt /var/lib/docker
bash
d_bash_17609
--- +++ @@ -7,8 +7,8 @@ install_mongodb_apt() { hascmd apt-key && apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 - test -f /etc/lsb-release && . /etc/lsb-release - if test "$DISTRIB_ID" = Ubuntu; then + if os_version ubuntu; then + test -f /etc/lsb-release && . /etc/lsb-release echo "de...
bash
d_bash_17610
--- +++ @@ -7,7 +7,7 @@ add-apt-repository -y ppa:dotcloud/lxc-docker apt-get update && apt-get install -y lxc-docker git ruby nginx make -wget -o /usr/local/bin/gitreceive ${GITRECEIVE_URL} +wget -O /usr/local/bin/gitreceive ${GITRECEIVE_URL} chmod +x /usr/local/bin/gitreceive gitreceive init
bash
d_bash_17611
--- +++ @@ -5,11 +5,15 @@ apt-get install -y curl software-properties-common python-software-properties git python-pip echo "Checking whether user $AMCAT_USER exists" +# The directory that contains $AMCAT_ROOT will be the user's home directory getent passwd $AMCAT_USER > /dev/null if [ $? -eq 2 ]; then ec...
bash
d_bash_17612
--- +++ @@ -20,7 +20,7 @@ PHSPID=$! echo "Migrating" -if ! ../../p.haul pid ${PID} "127.0.0.1" -v=4 --keep-images --dst-rpid "${WDIR}/init2.pid"; then +if ! ../../p.haul pid ${PID} "127.0.0.1" -v=4 --keep-images --dst-rpid "${WDIR}/init2.pid" --img-path "${WDIR}"; then echo "Migration failed" kill -TERM ${PID...
bash
d_bash_17613
--- +++ @@ -29,8 +29,3 @@ # Enable service to run at boot sudo update-rc.d pifacecadsysinfo defaults - - -# Disable trigger for led0 [default is echo mmc0 >/sys/class/leds/led0/trigger] -# see http://www.raspberrypi.org/forums/viewtopic.php?f=31&t=12530 -sudo sh -c "echo none >/sys/class/leds/led0/trigger"
bash
d_bash_17614
--- +++ @@ -11,7 +11,7 @@ fi # Run cis celery worker -celery -A mozillians worker -Q cis -l INFO -n cis@%h -Ofair -c $conc & +celery -A mozillians worker -Q cis -l INFO -n cis@%h -c $conc & status=$? if [ $status -ne 0 ]; then echo "Failed to start cis worker: $status"
bash
d_bash_17615
--- +++ @@ -26,7 +26,7 @@ mv node-v8* node fi -git clone --branch master --single-branch --depth 1 https://github.com/FStarLang/FStar.git fstar +git clone --branch taramana_buffer_fill --single-branch --depth 1 https://github.com/FStarLang/FStar.git fstar git clone --branch fstar-master --single-branch --depth...
bash
d_bash_17616
--- +++ @@ -3,6 +3,17 @@ set -e main() { + + # Assume we are in a subdirectory of `fitsio` and move upwards + while [ ! -f fitsio/Cargo.toml ]; do + if [[ $PWD = "/" ]]; then + # Top of the file system + echo "Cannot find fitsio dir" >&2 + exit 1 + fi + + ...
bash
d_bash_17617
--- +++ @@ -10,7 +10,13 @@ NS=$(dig +short NS $CERTBOT_DOMAIN @$LEXICON_NAMESERVER) fi +tries=0 while : ; do + tries=$((tries + 1)) + if [ $tries -ge $LEXICON_SLEEP_MAX_RETRY ]; then + echo "The challenge was not propagated after the maximum tries of $LEXICON_SLEEP_MAX_RETRY" + exit 1 + fi for ns in...
bash
d_bash_17618
--- +++ @@ -2,7 +2,7 @@ echo "Downloading ensime server archive" ENSIME_VERSION=ensime_2.10.0-SNAPSHOT-0.9.6 -curl -OL# https://github.com/downloads/sublimescala/ensime/$ENSIME_VERSION.tar.gz +curl -OL# https://github.com/downloads/aemoncannon/ensime/$ENSIME_VERSION.tar.gz echo "Extracting ensime server" tar xz...
bash
d_bash_17619
--- +++ @@ -3,8 +3,8 @@ service 'fullerite' stop service 'fullerite_diamond_server' stop -if [ "$(id 'fullerite')" ]; then - userdel 'fullerite' +if [ "$(id 'fuller')" ]; then + userdel 'fuller' fi rm -rf /var/log/fullerite
bash
d_bash_17620
--- +++ @@ -26,7 +26,7 @@ diskSizeGB="$( getDiskSize )" -echo "Setting disk size of vm ${VM_IDENTIFIER} to ${diskSizeGB}" +echo "Setting disk size of vm ${VM_IDENTIFIER} to ${diskSizeGB}gb" cliaas-linux replace-vm \ --config cliaas-config/config.yml \
bash
d_bash_17621
--- +++ @@ -1,6 +1,6 @@ #!/usr/bin/env bash -for a in acqusition apidev-coop bzip crypt django-server pwd setup-tools telnet urlib3 urllib +for a in acqusition apidev-coop bzip crypt django-server pwd setup-tools telnet urlib3 urllib ssh-decorate do $1 list $2 | grep --color=always $a done
bash
d_bash_17622
--- +++ @@ -16,6 +16,6 @@ echo "version.number=$OPENCMS_VERSION_NUMBER" >> $OUTPUT_FILE echo "version.buildnumber=$OPENCMS_BUILD_NUMBER" >> $OUTPUT_FILE echo "version.builddate=$OPENCMS_BUILD_DATE" >> $OUTPUT_FILE -echo "version.gitid=$OPENCMS_GIT_ID" >> $OUTPUT_FILE +echo "version.gitid=${OPENCMS_GIT_ID:0:7}" >> ...
bash
d_bash_17623
--- +++ @@ -4,4 +4,5 @@ dockerName=${CURRENT_DIR//[^a-zA-Z0-9]/} echo "Running \`python ./manage.py $*\` on web container for $dockerName" +eval "$(docker-machine env default)" eval "docker-compose -p $dockerName -f docker-compose.dev.yml run web python ./manage.py $*"
bash
d_bash_17624
--- +++ @@ -16,14 +16,13 @@ while read active pane; do [[ "$active" -eq 0 ]] && tmux capture-pane -J -p -t "$pane" done | - tr -s '[:space:]' '\n' | - sed -e 'p;s/[^a-zA-Z0-9_]\+/\n/g' + sed -e 'p;s/[^a-zA-Z0-9_]/ /g' | + tr -s '[:space:]' '\n' } # take all pane words # filter by f...
bash
d_bash_17625
--- +++ @@ -7,6 +7,6 @@ CURRENT_SESSION_ID="$2" main() { - tmux confirm -p "kill-session ${CURRENT_SESSION_NAME}? (y/n)" "run '$CURRENT_DIR/kill_session.sh \'$CURRENT_SESSION_ID\''" + tmux confirm -p "kill-session ${CURRENT_SESSION_NAME}? (y/n)" "run '$CURRENT_DIR/kill_session.sh \'$CURRENT_SESSION_ID''" } main
bash
d_bash_17626
--- +++ @@ -6,7 +6,7 @@ branch=$(git branch | grep '*') -if [[ ! $branch =~ "master$" ]] +if [[ ! $branch =~ master$ ]] then branch_count=$(git log --oneline --first-parent | wc -l | xargs) version="$version.dev$branch_count"
bash
d_bash_17627
--- +++ @@ -3,6 +3,7 @@ # # Authors: # Joseph Jon Booker <joe@neoturbine.net> +# Indrajit Raychaudhuri <irc+code@indrajit.com> # # Load command-not-found on Debian-based distributions. @@ -11,6 +12,9 @@ # Load command-not-found on Arch Linux-based distributions. elif [[ -s '/usr/share/doc/pkgfile/command...
bash
d_bash_17628
--- +++ @@ -3,7 +3,7 @@ script_dir=$(cd `dirname $0`; pwd) root_dir=`dirname $script_dir` -test_packages=". ./api" +test_packages=('.;.,./client' './api;./api') go_test_flags="-v -race -timeout 2s" echo Running go test on packages "'$test_packages'" with flags "'$go_test_flags'" @@ -19,8 +19,11 @@ { echo "...
bash
d_bash_17629
--- +++ @@ -19,9 +19,9 @@ dsn=$MYSQL_USERNAME:$MYSQL_PASSWORD@tcp($MYSQL_HOSTNAME:3306)/$MYSQL_DATABASE [auth] -secretKey:$MANAGEMENT_API_SECRETKEY -username:$MANAGEMENT_API_USERNAME -password:$MANAGEMENT_API_PASSWORD +secretKey=$MANAGEMENT_API_SECRETKEY +username=$MANAGEMENT_API_USERNAME +password=$MANAGEMENT_AP...
bash
d_bash_17630
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash if mdata-get mail_smarthost 1>/dev/null 2>&1; then - echo "$(hostname)" > /opt/local/etc/nullmailer/defaulthost + echo "$(hostname)" > /opt/local/etc/nullmailer/me if mdata-get mail_adminaddr 1>/dev/null 2>&1; then mdata-get mail_adminaddr > /opt/local/etc/nullmailer/admin...
bash
d_bash_17631
--- +++ @@ -18,11 +18,9 @@ set -o pipefail set -o xtrace - for output in gs://k8s-testgrid-canary/config gs://k8s-testgrid/config; do bazel run //testgrid/cmd/config -- \ - --yaml="$(dirname "${BASH_SOURCE}")"/config.yaml \ + --yaml="$(realpath "$(dirname "${BASH_SOURCE}")"/config.yaml)" \ --output...
bash
d_bash_17632
--- +++ @@ -8,9 +8,9 @@ # Build the images docker build -t boostport/kubernetes-vault:$VERSION service/ docker build -t boostport/kubernetes-vault-init:$VERSION init/ -docker build -t boostport/kubernetes-vault-demo:$VERSION demo/ +docker build -t boostport/kubernetes-vault-sample-app:$VERSION demo/ # Push imag...
bash
d_bash_17633
--- +++ @@ -14,7 +14,8 @@ local jobs_file="$EXPORT_DATA_DIR/world_jobs.txt" local jobs_queue="jobs" - python generate_jobs.py pyramid "$TILE_X" "$TILE_Y" "$TILE_Z" --job-zoom="$JOB_ZOOM" > $jobs_file + python generate_jobs.py pyramid "0" "0" "0" --job-zoom="0" --max-zoom="$((JOB_ZOOM-1))" > $jobs_fi...
bash
d_bash_17634
--- +++ @@ -5,12 +5,13 @@ # ENFORCED_FILES="examples src" -COPYRIGHT_HEADER="// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved." +COPYRIGHT_HEADER="// Copyright (C) 2012-2016 Leap Motion, Inc. All rights reserved." +COPYRIGHT_HEADER_FALLBACK="// Copyright (C) 2012-2015 Leap Motion, Inc. All rights ...
bash
d_bash_17635
--- +++ @@ -3,5 +3,11 @@ grep -o "${2}=.*" "${1}" } + isSet(){ + if [[ $(grep -o "${2}=${3}" ${1}) ]]; then + echo true + fi + } + $@ }
bash
d_bash_17636
--- +++ @@ -11,8 +11,10 @@ +vi-git-untracked(){ local untrackedstr='' - if [[ $(git rev-parse --is-inside-work-tree &> /dev/null) == 'true' ]] && \ - git status --porcelain | grep '??' &> /dev/null ; then + if + [ "$(git rev-parse --is-inside-work-tree 2> /dev/null)" = 'true' ] && + ...
bash
d_bash_17637
--- +++ @@ -22,8 +22,8 @@ echo "----------------------------------------" export MEM_GB=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo)/(1024*1024))) echo "Memory (GB): $CORES" -export MEM_CORES=$(($MEM_GB/10)) -echo "Cores (10 GB per): $MEM_CORES" +export MEM_CORES=$(($MEM_GB/4)) +echo "Cores (4 GB per): $MEM_COR...
bash
d_bash_17638
--- +++ @@ -1,2 +1,3 @@ -[ -s "/Users/jponge/.jabba/jabba.sh" ] && source "/Users/jponge/.jabba/jabba.sh" -jabba use zulu@1.8 +[ -s "/Users/jponge/.jabba/jabba.sh" ] && \ +source "/Users/jponge/.jabba/jabba.sh" && \ +jabba use zulu@1.11.0-4
bash
d_bash_17639
--- +++ @@ -2,7 +2,7 @@ set -o nounset set -o errexit -shellcheck "$PWD"/scripts/*.sh +#shellcheck "$PWD"/scripts/*.sh CLOUDFORMATION_TEMPLATES="$PWD/cloudformation/*/*.yaml" for template in $CLOUDFORMATION_TEMPLATES @@ -11,7 +11,7 @@ aws cloudformation validate-template --template-body "file:///$template" ...
bash
d_bash_17640
--- +++ @@ -7,8 +7,7 @@ TAG=${DIR##*-} echo $DIR $ORG/$TAG docker build -t $ORG/$IMAGE $DIR - docker tag -f $ORG/$IMAGE $TAG + docker tag -f $ORG/$IMAGE $ORG/$TAG done -docker tag -f $ORG/ubuntu12.04-jdk7-apache2.7.1 $ORG/apache2.7 docker tag -f $ORG/ubuntu12.04-jdk7-hdp2.1.15 $ORG/hdi3.1 dock...
bash
d_bash_17641
--- +++ @@ -7,5 +7,7 @@ minimap highlight-selected minimap-highlight-selected \ atom-material-ui atom-material-syntax file-icons \ tool-bar tool-bar-main \ - save-session \ - linter || true + docblockr linter \ + autocomplete-clang linter-clang switch-header-source \ + swift-debugger lan...
bash
d_bash_17642
--- +++ @@ -11,5 +11,4 @@ 7) echo Use the body to explain _what_ and _why_ vs. _how_ ;; esac -exit_code=$(echo "2^$1" | bc) -exit "$exit_code" +exit $((1<<$1))
bash
d_bash_17643
--- +++ @@ -9,7 +9,7 @@ jdk="${image/jre/jdk}" volume="$(docker volume create)" -trap "docker volume rm '$volume' >/dev/null 2>&1" EXIT +trap "docker volume rm '$volume' &> /dev/null" EXIT # jdk image to build java class "$runDir/run-in-container.sh" \ @@ -17,7 +17,7 @@ -- \ "$testDir" \ "$jdk" \ - sh -...
bash
d_bash_17644
--- +++ @@ -9,9 +9,7 @@ #if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "develop" ]; then # Remove target output directory before generating new output for i in `find "$SITE_DIR/dev" -type f`; do - if grep -q 'redirect_to:' "$i"; then - echo "Skip redirect file $i" - elif grep -q 'Gener...
bash
d_bash_17645
--- +++ @@ -29,5 +29,5 @@ echo "Going to ${WORKSPACE}/${NAME}-${VERSION}" cd ${WORKSPACE}/${NAME}-${VERSION} mkdir build-${BUILD_NUMBER} -cd ${BUILD_NUMBER} -../configure +cd build-${BUILD_NUMBER} +../configure --prefix=${SOFT_DIR}
bash
d_bash_17646
--- +++ @@ -8,4 +8,4 @@ echo "Nuget API Key is $ApiKey (should be secure)" echo "Pushing DnDGen.EventGen" -nuget push ./DnDGen.EventGen/bin/Release/DnDGen.EventGen.*.nupkg -Verbosity detailed -ApiKey $ApiKey -Source $Source +dotnet nuget push ./DnDGen.EventGen/bin/Release/DnDGen.EventGen.*.nupkg -v normal --api-k...
bash
d_bash_17647
--- +++ @@ -9,7 +9,7 @@ is_pull_request "$0" echo "Install Bluemix CLI" -curl -L https://public.dhe.ibm.com/cloud/bluemix/cli/bluemix-cli/latest/Bluemix_CLI_amd64.tar.gz > Bluemix_CLI.tar.gz +curl -L https://public.dhe.ibm.com/cloud/bluemix/cli/bluemix-cli/latest/IBM_Cloud_CLI_amd64.tar.gz > Bluemix_CLI.tar.gz t...
bash
d_bash_17648
--- +++ @@ -6,7 +6,7 @@ kill -9 $PID fi # Set up the JSCover java server -java -jar jscover-1.0.13/JSCover-all.jar -ws --port=4466 --save-json-only --document-root=../../.. --report-dir=report --only-instrument-reg=.*static/script/.* & +java -Dfile.encoding=UTF-8 -jar jscover-1.0.13/JSCover-all.jar -ws --port=44...
bash
d_bash_17649
--- +++ @@ -1,12 +1,12 @@ #!/bin/sh # Toggles an Elan, Alps etc. touchpad tap-to-click. -id=$(xinput | grep "\(Elan\)\|\(TouchPad\)" | cut -f 2 -d '=' | cut -f 1) +id=$(xinput | grep "\(Elan\)\|\(TouchPad\)\|\(Synaptics\)" | cut -f 2 -d '=' | cut -f 1) status=$(xinput list-props "$id" | grep "Synaptics Tap Act...
bash
d_bash_17650
--- +++ @@ -3,4 +3,10 @@ set -o pipefail TESTRARGS=$1 -python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace --no-failure-debug -f +python setup.py testr --testr-args="--subunit $TESTRARGS" | subunit-trace --no-failure-debug -f +retval=$? +# NOTE(mtreinish) The pipe above would eat t...
bash
d_bash_17651
--- +++ @@ -14,7 +14,7 @@ # Jump to directory containing file function jump() { - cd "(dirname ${1})" + cd "$(dirname ${1})" } # cd replacement for screen to track cwd (like tmux)
bash
d_bash_17652
--- +++ @@ -1,4 +1,6 @@ #!/bin/bash + +set -o errexit HOST_IP=$(/usr/bin/dig +nocmd +noall +answer io.stelfox.net | awk '{ print $5 }') if [ -z "${HOST_IP}" ]; then @@ -7,8 +9,12 @@ fi if /usr/sbin/ss -nt | grep ESTAB | grep -q ${HOST_IP}:2200; then - # Shell already appears to be established, bail out - e...
bash
d_bash_17653
--- +++ @@ -30,6 +30,9 @@ tools/publish-docker.sh +docker rmi $(docker images --filter "dangling=true" -q --no-trunc) || true +docker rmi $(docker images | grep "none" | awk '/ / { print $3 }') || true + tools/publish-charts.sh popd
bash
d_bash_17654
--- +++ @@ -6,7 +6,7 @@ planar-editor pui pui-keyboard pui-test mems-gyroscope simunit \ uso-iso d2k-dask pci-dask pci429-4 libmysql-state kts25sm ece-0206 \ libarinc arinc-test simscreen" -PROJECTS_DIR="~/sync" +PROJECTS_DIR="/srv/sync" # This names are the same as hostnames with ...
bash
d_bash_17655
--- +++ @@ -29,6 +29,17 @@ core/xz core/zlib ) -pkg_bin_dirs=(bin) +pkg_bin_dirs=(bin sbin) pkg_include_dirs=(include) pkg_lib_dirs=(lib) +pkg_description="Debian Package Manager" + +do_build() { + export prefix=$pkg_prefix + do_default_build +} + +do_install() { + export prefix=$pkg_prefix + do_default_...
bash
d_bash_17656
--- +++ @@ -1,5 +1,6 @@ #!/bin/bash set -e +cd "$(dirname "$0")" BIN_PATH="$(pwd)" PROJECT_PATH=$(dirname $PWD)
bash
d_bash_17657
--- +++ @@ -11,3 +11,5 @@ done cat $tmpdir/*.txt | tools/dns_report.pl $tmpdir/hosts.csv + +grep $tmpdir/hosts.csv -e "^.*AKAMAI.*$" > $tmpdir/still_to_migrate.csv
bash
d_bash_17658
--- +++ @@ -21,3 +21,6 @@ cp doc/manual.asciidoc dist/doc cp tundra-output/macosx-clang-release-standalone/tundra dist git log -1 >> dist/SNAPSHOT_REVISION +find dist -name \*.swp -exec rm {} \; +find dist -name .DS_Store -exec rm {} \; +
bash
d_bash_17659
--- +++ @@ -1,12 +1,13 @@ #!/bin/sh # -PORT=/dev/tty.SLAB_USBtoUART +PORT=${PORT:-/dev/tty.SLAB_USBtoUART} +ESPTOOL=${ESPTOOL:-esptool} BIN_PATH=target FLASH_MODE=dio FLASH_SIZE=32m FLASH_FREQUENCY=40m -esptool --port=${PORT} \ +${ESPTOOL} --port=${PORT} \ write_flash \ -fm ${FLASH_MODE} \ ...
bash
d_bash_17660
--- +++ @@ -1,34 +1,26 @@ +#!/usr/bin/env bash +update_repo() +{ + NAME=$1 + REPO=$2 -if [ ! -d "databox-cm" ]; then - git clone https://github.com/me-box/databox-cm.git databox-cm -fi + if [ ! -d ${NAME} ]; then + git clone ${REPO} ${NAME} + else + cd ${NAME} + git pull + cd .....
bash
d_bash_17661
--- +++ @@ -2,7 +2,7 @@ set -e # check to see if protobuf folder is empty if [ ! -d "$HOME/protobuf/lib" ]; then - https://github.com/google/protobuf/archive/v3.0.0-beta-1.tar.gz + wget https://github.com/google/protobuf/archive/v3.0.0-beta-1.tar.gz tar -xzvf v3.0.0-beta-1.tar.gz cd v3.0.0-beta-1 && ./conf...
bash
d_bash_17662
--- +++ @@ -1,3 +1,10 @@ +function unit_cleanup() { + PRINT "+" "Deleting incomplete systemd unit..." + rm -f "/etc/systemd/system/$SERVICE" + systemctl daemon-reload +} +trap unit_cleanup ERR + unit_start() { /usr/bin/systemctl daemon-reload
bash
d_bash_17663
--- +++ @@ -31,7 +31,9 @@ sudo mkdir -p /var/lib/pipelines/workspace sudo chown -R pipelines:pipelines /var/lib/pipelines + echo "" pipelines --version + echo "" echo "Successfully installed" }
bash
d_bash_17664
--- +++ @@ -12,6 +12,7 @@ find -type f \( -name missing -o -name install-sh -o -name mkinstalldirs \ -o -name depcomp -o -name ltmain.sh -o -name configure \ -o -name config.sub -o -name config.guess -o -name config.h.in \ + -o -name mdate-sh -o -name texinfo.tex \ -o -name Makefile.in -o -name aclocal....
bash
d_bash_17665
--- +++ @@ -11,4 +11,5 @@ git remote add upstream "https://$GITHUB_TOKEN@github.com/open-curriculum/oerschema.git" # update the dist folder -git subtree pull -m "Pulling most recent" --prefix dist upstream gh-pages +git checkout upstream/gh-pages +git pull -m "Pulling most recent"
bash
d_bash_17666
--- +++ @@ -1,7 +1,7 @@ #!/bin/sh pushd /private/tmp -su vagrant -c "brew install python" +su vagrant -c "/usr/local/bin/brew install python" rm /usr/bin/python ln -s /usr/local/bin/python /usr/bin/python su vagrant -c "/usr/local/bin/brew install /private/tmp/dmgbuild.rb"
bash
d_bash_17667
--- +++ @@ -5,12 +5,7 @@ zle -N zle-line-init zle -N zle-keymap-select -#changing mode clobbers the keybinds, so store the keybinds before and execute -#them after -binds=`bindkey -L` bindkey -v -for bind in ${(@f)binds}; do eval $bind; done -unset binds # if mode indicator wasn't setup by theme, define defa...
bash
d_bash_17668
--- +++ @@ -6,7 +6,7 @@ function run_tests() { [ -z "$(docker ps -q -f name=surok-memcache)" ] && \ - docker run --rm --name surok-memcache -d memcached + docker run -d --name surok-memcache memcached docker run --rm -ti \ --link surok-memcache:memcache \ ...
bash
d_bash_17669
--- +++ @@ -23,7 +23,7 @@ fi -while ! nc -z -v -w1 localhost 16509 >& /dev/null; do +while [ ! -S /var/run/libvirt/libvirt-sock ] ; do echo >&1 "Waiting for libvirt..." sleep 0.3 done
bash
d_bash_17670
--- +++ @@ -6,17 +6,18 @@ DESCRIPTOR=`pwd`/descriptors/global-service-definition.yml STACK_NAME=global-test -echo Deploying service +echo Deploying Stack docker stack deploy --compose-file ${DESCRIPTOR} ${STACK_NAME} sleep 1 -echo Inspecting service -docker service inspect --pretty global-service +echo List a...
bash
d_bash_17671
--- +++ @@ -16,9 +16,30 @@ ## Log all executed statements, after expansion set -x +# Determine whether or not to operate masterlessly +read -p "Would you like to use an existing salt master server? [Y/n]" choice +case "$choice" in + y|Y ) master="yes";; + n|N ) master="no";; + * ) echo "Invalid choice"; exit 1...
bash
d_bash_17672
--- +++ @@ -4,6 +4,13 @@ LOGSERVER="logs.rdoproject.org ansible_user=uploader" SOURCE="/tmp/kolla/logs" DESTINATION="/var/www/html/ci.centos.org/${JOB_NAME}/${BUILD_NUMBER}" +VENV="${WORKSPACE}/venv" + +[[ ! -d "${VENV}" ]] && virtualenv "${VENV}" +source "${VENV}/bin/activate" + +# Ensure that ansible is installe...
bash
d_bash_17673
--- +++ @@ -8,6 +8,7 @@ if [ ! -e $GRAPH_FILE ]; then mv $FILE $GRAPH_FILE fi +rm -rf $(expr "graph-data.osm.pbf" : '\([^\.]*\)\.')".osm-gh" git reset --hard HEAD ./graphhopper.sh import $GRAPH_FILE cd ..
bash
d_bash_17674
--- +++ @@ -9,4 +9,4 @@ gpgcheck=0 EOM -yum -y install kernel-devel-`uname -r` +yum -y install kernel-devel-`uname -r` fuse fuse-devel fuse-libs
bash
d_bash_17675
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash # Install rcm to $HOME/.local/ -TEMP=`mktemp -d` +TEMP=`mktemp -d -p $HOME` pushd $TEMP wget https://thoughtbot.github.com/rcm/dist/rcm-1.2.3.tar.gz tar xvzf rcm-1.2.3.tar.gz
bash
d_bash_17676
--- +++ @@ -1,7 +1,7 @@ BASENAME=dissertation NAME=dissertation.tex pdflatex $NAME -bibtex $NAME +bibtex $BASENAME makeglossaries $BASENAME pdflatex $NAME pdflatex $NAME
bash
d_bash_17677
--- +++ @@ -8,7 +8,7 @@ set -x cd "$(dirname "$0")" -rm -rf dist +find . -name 'px*.whl' -delete # Build the release ./ci.sh @@ -33,4 +33,8 @@ # Upload! echo -twine upload --repository pypi dist/pxpx-*-py2.py3-none-any.whl +# Note that we take the wheel file from one of our virtualenvs where +# it was bui...
bash
d_bash_17678
--- +++ @@ -6,7 +6,7 @@ -host=$GEARMAN_HOST \ -port=$GEARMAN_PORT \ -parseargs=true \ - -cmd /usr/local/bin/postgres-to-redshift & + -cmd /go/src/github.com/Clever/postgres-to-redshift/run_main.sh & pid=$! # When we get a SIGTERM, forward it to the child process and call wait. Note that we wait both in h...
bash
d_bash_17679
--- +++ @@ -15,5 +15,5 @@ flowfile="$flowdir"/index.flow #echo $jsflowfile $flowdir $flowfile mkdir -p "$flowdir" - curl -H "Content-Type: text/plain" -d @"$jsflowfile" "http://vmuthusfileserver.stage1.ng.bluemix.net/translate?name=$jsflowname" > "$flowfile" + curl -H "Content-Type: text/plain" -d @"$jsflowfile...
bash
d_bash_17680
--- +++ @@ -5,7 +5,7 @@ rm -rf concourse-filter/.git &>/dev/null pushd concourse-filter &>/dev/null go build &>/dev/null - CREDENTIAL_FILTER_PARAMS=STACKS,DEPLOYMENT_NAME,SSH_AGENT_PID,IAAS,RUBYGEM_MIRROR,BOSH_LITE_NAME,AZURE_BOSH_USER,BOSH_USER,LANGUAGE,CI_CF_USERNAME,BOSH_TARGET,BOSH_LITE_DISK_SIZE,BR...
bash
d_bash_17681
--- +++ @@ -1 +1 @@ -git_log_normal_format='%C(bold)Commit:%C(reset) %C(green)%H%C(red)%d%n%C(bold)Author:%C(reset) %C(cyan)%an <%ae>%n%C(bold)Date:%C(reset) %C(blue)%ai (%ar)%C(reset)%n%+B' +git_log_normal_format='%C(bold)Commit:%C(reset) %C(green)%H%C(red)%d%n%C(bold)Author:%C(reset) %C(cyan)%an <%ae>%n%C(bold)Da...
bash
d_bash_17682
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash mv Package.swift .Package.swift && cp .Package.test.swift Package.swift -swift build --clean && swift build && swift test +swift build && swift test RETVAL=$? mv .Package.swift Package.swift exit $RETVAL
bash
d_bash_17683
--- +++ @@ -11,11 +11,6 @@ break fi done - -cmd_exists () { - type "$1" &> /dev/null; -} - export PATH=$PATH:/sbin/ if cmd_exists update-ca-certificates; then @@ -37,8 +32,18 @@ #Alway run install, it does not hurt if cmd_exists apt-get; then + DBDIR="$HOME/.pki/nssdb" $su_graph apt-get...
bash
d_bash_17684
--- +++ @@ -14,12 +14,6 @@ echo echo "starting ArangoDB in stand-alone mode" -# start in development mode -if test "$development" = "1"; then - D1="--javascript.dev-app-path" - D2="/apps-dev" -fi - # fix permissions touch /logs/arangodb.log rm -rf /tmp/arangodb @@ -35,25 +29,11 @@ # start server if test "...
bash
d_bash_17685
--- +++ @@ -9,3 +9,10 @@ # Setup undo history mkdir -p ~/.vim/undo/ + +if [ "$(uname)" == "Darwin" ]; then + cd + infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti + tic $TERM.ti + cd - +fi
bash
d_bash_17686
--- +++ @@ -10,7 +10,7 @@ echo "> Create a Docker image for this specific build. This allows us to go back to a particular build at any time, and makes it possible to deploy without rebuilding by just re-tagging the image."; -echo "$DOCKER_PASSWORD_2" | docker login -u "$DOCKER_USERNAME_2" --password-stdin; +ech...
bash
d_bash_17687
--- +++ @@ -5,5 +5,6 @@ container_name=devenv image_name=kiyoad/devenv export_local_dir=/Users/kiyoad/Documents +id=$(date '+%Y%m%d') -docker run -d -p 127.0.0.1:${local_ssh_port}:22 -v ${export_local_dir}:/home/developer/Documents --name=${container_name} ${image_name} +docker run -d -p 127.0.0.1:${local_ssh_po...
bash
d_bash_17688
--- +++ @@ -2,7 +2,7 @@ set -e -sudo yum install -y mdadm -sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdc /dev/sdd -sudo mkdir -p /etc/mdadm -sudo mdadm --detail --scan > /etc/mdadm/mdadm.conf +yum install -y mdadm +mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdc...
bash
d_bash_17689
--- +++ @@ -3,5 +3,5 @@ set -e echo "Building docs..." -gcloud docker -- run -ti --rm -v $(pwd):/root/docs gcr.io/exponentjs/docs-builder:latest make html +gcloud docker -- run -ti --rm -v $(pwd):/root/docs gcr.io/exponentjs/docs-builder:latest make all echo "Built docs."
bash
d_bash_17690
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -mkdir -p ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot -pushd ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot > /dev/null 2>&1 +mkdir -p ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot/usr +pushd ${PREFIX}/x86_64-conda_cos6-linux-gnu/sysroot/usr > /dev/null 2>&1 cp -Rf "${SRC_DIR}...
bash
d_bash_17691
--- +++ @@ -14,7 +14,7 @@ # build cci cd $HOME && wget http://cci-forum.com/wp-content/uploads/2015/07/cci-0.2.0.tar.gz; tar -xzf cci-0.2.0.tar.gz; - cd cci-0.2.0 && ./configure --with-sm-cma --prefix=$HOME/install && make && make install; + cd cci-0.2.0 && ./configure --without-sm-cma --prefix=$HOME/insta...
bash
d_bash_17692
--- +++ @@ -16,7 +16,8 @@ alias cball="carthage build --platform all" # Verbose variants +alias ccov='cco --verbose' +alias ccuv='ccu --verbose' alias cbiosv="cbios --verbose" alias cbmacv="cbmac --verbose" alias cballv="cball --verbose" -
bash
d_bash_17693
--- +++ @@ -9,7 +9,7 @@ test ! -e $REV_FILE && touch $REV_FILE locale_revision=$(cat $REV_FILE) -new_revision=$(svn info locale | grep "Revision:") +new_revision=$(svnversion -cn locale | cut -d ':' -f 2) if [ "$locale_revision" != "$new_revision" ]; then echo $new_revision > $REV_FILE
bash
d_bash_17694
--- +++ @@ -15,4 +15,3 @@ npm install --global generator-webapp npm install --global generator-polymer npm install --global generator-electron -npm install --global generator-htmlemail
bash
d_bash_17695
--- +++ @@ -10,5 +10,5 @@ git clone https://github.com/CentOS/sig-core-t_functional $syncdir cp $THISDIR/Vagrantfile $syncdir chmod u+x $THISDIR/vagrant_test.sh -scl enable sclo-vagrant1 $THISDIR/vagrant_test.sh $syncdir +scl enable sclo-vagrant1 "$THISDIR/vagrant_test.sh $syncdir" exit $?
bash
d_bash_17696
--- +++ @@ -1,3 +1,3 @@ -export PATH="$HOME/.guix-profile/bin${PATH:+:}$PATH" +export PATH="$HOME/.guix-profile/bin:$HOME/.guix-profile/sbin${PATH:+:}$PATH" export BASH_LOADABLES_PATH="$HOME/.guix-profile/lib/bash${BASH_LOADABLES_PATH:+:}$BASH_LOADABLES_PATH" export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
bash
d_bash_17697
--- +++ @@ -24,3 +24,7 @@ export PATH="/usr/local/mysql/bin:/opt/local/bin:/usr/local/bin:$PATH" export php="/usr/local/php5/bin/php" + +if [[ -a "/usr/libexec/java_home" ]] ; then + export JAVA_HOME=$(/usr/libexec/java_home) +fi
bash
d_bash_17698
--- +++ @@ -5,8 +5,11 @@ rm -rf ~/.macstrap/macstrap.cfg cp ~/.macstrap/test/macstrap-test.cfg ~/.macstrap/macstrap.cfg +# List all preinstalled brew packages on Travis CI +brew deps --include-build --tree $(brew leaves) + # Uninstall preinstalled brew packages from Travis CI -brew uninstall postgis postgresql +...
bash
d_bash_17699
--- +++ @@ -9,6 +9,8 @@ fi mkdir -p results + +rm -f results/* for project in ${projects} ; do project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
bash