document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_10400
--- +++ @@ -1,7 +1,8 @@ #!/bin/sh +# shellcheck shell=ash set -euo pipefail -if hash greadlink &>/dev/null; then +if hash greadlink >/dev/null 2>/dev/null; then readlink() { greadlink "$@"; } fi @@ -9,7 +10,7 @@ cd "$(dirname "$(dirname "$(readlink -f "$0")")")" step() { - echo -e "\e[1;36m>>\e[0;36m $...
bash
d_bash_10401
--- +++ @@ -1,4 +1,10 @@ #!/bin/bash -for file in *.f; do ftn -O3 -c $file; done -gcc main.cc dgemm.o dgesv.o dgetrf.o dgetrf2.o dgetrs.o dlaswp.o dtrsm.o xerbla.o lsame.o ilaenv.o idamax.o dlamch.o dscal.o ieeeck.o iparmq.o -lm -lgfortran -o main +CC=gcc +FC=ftn +FFLAGS="-O3 -march=native" + +for file in *...
bash
d_bash_10402
--- +++ @@ -1,5 +1,8 @@ #!/bin/bash -# script to bootstrap a machine such that puppet can be applied. +# script to bootstrap a machine #rsync the contents of randomness-puppet to a remote machine rsync -avzPh --stats --exclude-from=.rsync_exclude ../randomness-puppet root@$1: + +# apply puppet +ssh root@$1 "cd...
bash
d_bash_10403
--- +++ @@ -3,5 +3,10 @@ node update.js node liquor.js node render.js +cat > ~/.s3cfg << EOF +[default] +access_key = $AWS_KEY_ID +secret_key = $AWS_SECRET_ACCESS_KEY +EOF ./node_modules/s3-cli/cli.js sync -P --region 'us-west-2' --default-mime-type 'text/html' out/ s3://www.belltowncrime.com/ ./node_modules/s3-...
bash
d_bash_10404
--- +++ @@ -7,7 +7,7 @@ exit 1 fi -VAGRANT_VERSION=$2 +export VAGRANT_VERSION=$1 # Get our directory SOURCE="${BASH_SOURCE[0]}" @@ -15,8 +15,6 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" cp "${DIR}/archlinux/PKGBUILD" ./PKGBUILD -CLEAN_VAGRANT_VERSION=$(echo $VAGRANT_VERSION | sed 's/^v//') -s...
bash
d_bash_10405
--- +++ @@ -1,2 +1,3 @@ #! /bin/bash -fpc SoAoS.dpr -Sd -B -FE../../../game -FUdcu +mkdir -p dcu +fpc SoAoS.dpr -Sd -B -FE../../assets -FUdcu
bash
d_bash_10406
--- +++ @@ -13,7 +13,7 @@ mkdir -p $decoder_dir decoder_weights_fname="$decoder_dir/decoder_weights.hdf5" -decoder_model_fname="$decoder_dir/decoder_architecture.hdf5" +decoder_model_fname="$decoder_dir/decoder_architecture.json" localizer_weights_fname="$localizer_dir/saliency-weights.hdf5" if [ ! -e "$deco...
bash
d_bash_10407
--- +++ @@ -3,6 +3,9 @@ # gitg provides a UI to view and commit changes, and gets added to Programming menu. # gitk provides a UI to view history. -sudo apt-get install gitg gitk -y +# gitg - repository viewer +# gitk - for browsing history +# git gui - for committing a file +sudo apt-get install gitg gitk git-gu...
bash
d_bash_10408
--- +++ @@ -1,3 +1,3 @@ # Configure global gitignore. -[ ! -L "${HOME}/.gitignore" ] && ln -vs "${DOT_STAR_ROOT}/git/.gitignore" "${HOME}" +[[ ! -e "${HOME}/.gitignore" ]] && ln -vs "${DOT_STAR_ROOT}/git/.gitignore" "${HOME}" git config --global core.excludesfile "~/.gitignore"
bash
d_bash_10409
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash -echo 'Downloading PhpMyAdmin 4.5.2' -curl -#L https://files.phpmyadmin.net/phpMyAdmin/4.5.2/phpMyAdmin-4.5.2-english.tar.gz -o phpmyadmin.tar.gz +echo 'Downloading phpMyAdmin 4.5.3.1' +curl -#L https://files.phpmyadmin.net/phpMyAdmin/4.5.3.1/phpMyAdmin-4.5.3.1-english.tar.gz -o...
bash
d_bash_10410
--- +++ @@ -4,7 +4,7 @@ set -x USER=$(whoami) -DIR=$(realpath $(dirname "$0")) +DIR=$(readlink -f $(dirname "$0")) TRAVIS_PHP_VERSION=$(phpenv version-name) #DOCUMENT_ROOT=$(realpath "$DIR/../tests") PORT=9000
bash
d_bash_10411
--- +++ @@ -8,6 +8,6 @@ source /home/zookeeper/.profile -/opt/zookeeper/zookeeper-<%= node[:zookeeper][:version] %>/bin/zkCleanup.sh <%= node[:zookeeper][:dataDir] %> <%= node[:zookeeper][:snapshotDir] %> <%= node[:zookeeper][:snapshotNum] %> +<%= node[:zookeeper][:installDir] %>/zookeeper-<%= node[:zookeeper][...
bash
d_bash_10412
--- +++ @@ -8,7 +8,8 @@ # Install Xcode open "macappstores://itunes.apple.com/en/app/xcode/id497799835" -until [ -d "/Applications/Xcode.app" ] +until [ -d "/Applications/Xcode.app" ]; +do sleep 5 done
bash
d_bash_10413
--- +++ @@ -12,6 +12,10 @@ fi local opath=$path path=${DIRSTACK[@]:$num:1} + # Handle the "special" case of ${DIRSTACK[0]} using unexpanded ~. + if [ "${path:0:1}" = "~" ]; then + tildecase "$path" + fi : "${path:=$opa...
bash
d_bash_10414
--- +++ @@ -1,2 +1,2 @@ #!/bin/sh -./configure --with-debug --with-components="example acpi net lustre coretemp" $1 +./configure --with-debug --with-components="example net lustre coretemp" $1
bash
d_bash_10415
--- +++ @@ -21,6 +21,7 @@ --url="${URL}" \ --sha256="${SHA}" \ ./hhvm-nightly.rb +gsed -i '/sha256.\+ => :/' hhvm-nightly.rb git add hhvm-nightly.rb git commit -m 'Update nightly version' git push
bash
d_bash_10416
--- +++ @@ -3,39 +3,38 @@ ## ENGINE ## ------------------------------------------------------------------------ ## ## - Setup laravel/installer -## - Download, install and configure latest Laravel Framework +## - Download, install and configure Laravel Framework -## Consists of: -## check_engine -## ...
bash
d_bash_10417
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.16" +version="20.10.17" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_10418
--- +++ @@ -14,7 +14,11 @@ rm -f examples/compiled/$name.vg.json bin/vl2vg -p examples/specs/$name.vl.json > examples/compiled/$name.vg.json - if (! git diff $nopatch --exit-code HEAD -- $dir/$name.vg.json || $forcesvg) + # compile SVG if one of the following condition is true + # 1) Vega spec has changed ...
bash
d_bash_10419
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash -for name in $(find packages -name node_modules -prune -o -name 'cardpay-subgraph' -prune -o -name 'tsconfig.json' -print); do +for name in $(find packages -name node_modules -prune -o -name '*-subgraph' -prune -o -name 'tsconfig.json' -print); do { cd $(dirname $name) ...
bash
d_bash_10420
--- +++ @@ -2,7 +2,7 @@ # This script assumes that "spark-submit" is available on $PATH. -OUTDIR=data/sample/adjudicated_modeled_live_eyehair_100_03-tags.spark +OUTDIR=data/sample/adjudicated_modeled_live_eyehair_100_03-tags-hj.spark # Dangerous! rm -rf ${OUTDIR}
bash
d_bash_10421
--- +++ @@ -4,7 +4,12 @@ exit fi +export CODENAME=$(lsb_release --codename --short) export LLVM_VERSION=$1 + +# Add repositories +sudo add-apt-repository --enable-source "deb http://llvm.org/apt/${CODENAME}/ llvm-toolchain-${CODENAME}-${LLVM_VERSION} main" +sudo apt-get update sudo rm /usr/bin/llvm-config s...
bash
d_bash_10422
--- +++ @@ -1,24 +1,20 @@ #!/usr/bin/env bash # boostrap.sh - used by vagrant to provision a dev environment -cat > /etc/apt/sources.list << EOL - deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse - deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted u...
bash
d_bash_10423
--- +++ @@ -6,3 +6,12 @@ if (tty -s); then workon py3 fi + +# gpip function allows to pip install in global config +gpip2(){ + PIP_REQUIRE_VIRTUALENV="" pip2 "$@" +} + +gpip3(){ + PIP_REQUIRE_VIRTUALENV="" pip3 "$@" +}
bash
d_bash_10424
--- +++ @@ -9,20 +9,11 @@ PROMOTED_HASH=$2 LINK_NAME=$3 -image_path="$RELEASE/rdo_trunk/$LINK_NAME" -ssh_cmd='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' +function sftp_command { + echo "$1" | sftp \ + -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ + uploader@i...
bash
d_bash_10425
--- +++ @@ -4,9 +4,8 @@ set -ex export RUST_BACKTRACE=full -/opt/libra/bin/faucet-config-builder \ +/opt/libra/bin/config-builder faucet \ -o /opt/libra/etc \ - -n $CFG_NUM_VALIDATORS \ -s $CFG_SEED cd /opt/libra/bin && \
bash
d_bash_10426
--- +++ @@ -2,6 +2,13 @@ . variables.sh echo "Loading previous theme ..." + +if [ ! -f $BACKUP_THEME_PATH ] +then + echo "File $BACKUP_THEME_PATH does NOT exists. Cannot restore previous theme." + exit 1; +fi + gconftool-2 --load $BACKUP_THEME_PATH echo "Removing $BACKUP_THEME_PATH"
bash
d_bash_10427
--- +++ @@ -22,7 +22,7 @@ } if [ "$#" -eq 0 ] ; then - docker build -f tools/update_tools/Dockerfile --tag rules_python:update_tools . + docker build --no-cache -f tools/update_tools/Dockerfile --tag rules_python:update_tools . docker run -v"$PWD":/opt/rules_python_source rules_python:update_tools elif [ "$...
bash
d_bash_10428
--- +++ @@ -5,6 +5,6 @@ git config --global user.email "alice+travis@gothcandy.com" git config --global user.name "Travis: Marrow" -pip install --upgrade setuptools pip pytest +# pip install --upgrade setuptools pip pytest pip install tox tox-travis codecov
bash
d_bash_10429
--- +++ @@ -1,6 +1,6 @@ #!/bin/sh -OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)" +OUT="$(find "$(dirname "$0")/../packaging/dbscripts" | grep -P '^\d{2}_\d{2}_\d{2,8}' -o | sort | uniq -d)" if [ -n "${OUT}" ]; then echo "Found duplicate upgrade scri...
bash
d_bash_10430
--- +++ @@ -4,7 +4,7 @@ if mkfifo -m 600 "$tmppipe"; then trap 'rm -rf "$tmppipe"' EXIT INT TERM HUP - ./search_searcher $tmppipe $@ & + ./search_searcher $@ $tmppipe & read resp < $tmppipe if [[ "$resp" == '' ]]; then echo "No response"
bash
d_bash_10431
--- +++ @@ -12,6 +12,23 @@ eval docker run --rm --init -v $(pwd):$MOUNTED_DIR $(buildkite-intrinsics) $FULL_TAG bash -c "$MOUNTED_DIR/$@" EXIT_STATUS=$? fi +# buildkite +if [[ "$BUILDKITE" == 'true' ]]; then + cd build + # upload artifacts + echo '+++ :arrow_up: Uploading Artifacts' + echo 'Com...
bash
d_bash_10432
--- +++ @@ -5,5 +5,5 @@ SERVICE_PATH=$(pip show $DRIFT_SERVICE |grep "^Location:" |sed -e 's/Location: //g') curl https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py -O -sudo python awslogs-agent-setup.py --region $AWS_REGION --configfile $SERVICE_PATH/config/awslogs.conf +sudo python ...
bash
d_bash_10433
--- +++ @@ -2,5 +2,5 @@ stty cols 80 stty rows 24 -nethack $@ +exec nethack $@
bash
d_bash_10434
--- +++ @@ -30,9 +30,11 @@ function main() { if [[ $# -eq 0 ]] ; then - echo 'Usage: tidyup <dir1> <dir2> ... <dirN>' - echo 'Tidies ~/<dirN> to ~/Backups/<dirN>' - exit 0 + cat <<-EndUsage + Usage: tidyup <dir1> <dir2> ... <dirN> + Tidies ~/<dirN> to ~/Backups/<dirN> + EndUsage + exit 1 fi # Tod...
bash
d_bash_10435
--- +++ @@ -5,7 +5,7 @@ sudo /var/vcap/bosh/bin/monit start all echo "Waiting for all processes to start" -for ((i=0; i < 60; i++)); do +for ((i=0; i < 120; i++)); do if (sudo /var/vcap/bosh/bin/monit summary | tail -n +3 | grep -E "running$"); then break fi
bash
d_bash_10436
--- +++ @@ -19,4 +19,4 @@ ogrisel/python-winbuilder \ sh /opt/.build-trezor.sh -(cd python-trezor/dist ; ls -la; unzip -o trezor-*.win32.zip) +(cd python-trezor/dist ; whoami; ls -la; unzip -o trezor-*.win32.zip)
bash
d_bash_10437
--- +++ @@ -3,13 +3,26 @@ MathUtilTest(){ run(){ - local tests=(decrement increment) + local tests=( + decrement + decrement[negative] + increment + increment[negative] + ) TestExecutor executeTest MathUtilTest ${tests[@]} } testDecrement(){ if [[ $(MathUtil decrement 2) == 1 ]]; then + ...
bash
d_bash_10438
--- +++ @@ -10,7 +10,7 @@ local completions=$(jenv completions "${words[@]}") COMPREPLY=( $(compgen -W "$completions" -- "$word") ) # Prevents the addition of a trailing space when completing a path - [[ $COMPREPLY = */ ]] && compopt -o nospace + [[ $COMPREPLY = */ ]] && complete -o nospace fi...
bash
d_bash_10439
--- +++ @@ -10,7 +10,7 @@ fi export KD_DIR=$(dirname $(readlink -f $BASH_SOURCE)) -PYTHON=${PYTHON:-python} +PYTHON=${PYTHON:mython} kd () { @@ -43,3 +43,9 @@ kd -U "$@" set +x } + +kd () { + local KD_DIR=$(dirname $BASH_SOURCE) + local kd_script=$KD_DIR/kd.py + PYTHONPATH=$KD_DIR $PYTHON $kd_scri...
bash
d_bash_10440
--- +++ @@ -28,7 +28,13 @@ if ! type -p nosetests > /dev/null; then echo "[ERROR] nosetests not found. Cannot run tests." else - python "$(which nosetests)" --with-coverage --cover-package=victims_web --cover-min-percentage=0 -v ${TEST_DIR}/*.py + CMD="python $(which nosetests) -v" + echo $CMD + if [ $# ...
bash
d_bash_10441
--- +++ @@ -8,12 +8,20 @@ # TODO: have this in global vars [ -e "$testuser_path" ] +testuser_file=$(cat $testuser_path) +p1=$(echo $testuser_file | cut -f1 -d$USER_DIR_FORMAT_DELIM) +p2=$(echo $testuser_file | cut -f2 -d$USER_DIR_FORMAT_DELIM) +p3=$(echo $testuser_file | cut -f3 -d$USER_DIR_FORMAT_DELIM) + +[ -n ...
bash
d_bash_10442
--- +++ @@ -1,6 +1,7 @@ -#!/bin/bash -if [ "${TRAVIS_BRANCH}" = "master" ]; then - echo "Generating an pushing docs to github pages" +#!/bin/sh + +if [ "${TRAVIS_BRANCH}" == "master" ]; then + echo "Generating and pushing docs to github pages" cd docs/html/ git init git config user.name "Travis C...
bash
d_bash_10443
--- +++ @@ -1,9 +1,19 @@ -if [ -s "/usr/share/fzf/key-bindings.zsh" ]; then - source /usr/share/fzf/key-bindings.zsh +UNAME=$(uname) + +if [ $UNAME == "Darwin" ]; then + BINDINGS=/usr/local/opt/fzf/shell/key-bindings.zsh + COMPLETION=/usr/local/opt/fzf/shell/completion.zsh +else # Assume Archlinux + BINDINGS=/usr...
bash
d_bash_10444
--- +++ @@ -21,6 +21,7 @@ git clean -qfxde/www/html mv www/html/* . rm -r www +echo -n 'data-encoding.rs' > CNAME git add . git commit -qm"$CUR_COMMIT" git checkout -q master
bash
d_bash_10445
--- +++ @@ -8,13 +8,31 @@ year=$1 if [ `expr $year % 400` -eq 0 ]; then - echo "$year is a Leap year" + return 1 elif [ `expr $year % 100` -eq 0 ]; then - echo "$year is not a Leap year" + return 0 elif [ `expr $year % 4` -eq 0 ]; then - echo "$year is not a Le...
bash
d_bash_10446
--- +++ @@ -1,11 +1,18 @@ #!/bin/sh +# This should be the path of the git repo for Core CLR. To the best of my knowledge, +# Microsoft does not yet ship the necessary header files separately from the repo. [ -z "${CORECLR_PATH:-}" ] && CORECLR_PATH=~/coreclr + +# Currently, this has only been tested on OS X. [ -...
bash
d_bash_10447
--- +++ @@ -1,14 +1,10 @@ #!/bin/bash echo "Remove virtualenv..." +echo "====================" rm -rf venv +echo "" echo "Drop database and user..." -if psql ${DB_NAME} -c '' 2>&1; then - echo "database ${DB_NAME} exists" - dropdb ${DB_NAME} -fi -if psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolna...
bash
d_bash_10448
--- +++ @@ -11,6 +11,8 @@ nprocs=$(grep -c ^processor /proc/cpuinfo) fi +: ${OPENSSL_ROOT_DIR:=/usr/local} + set -e rm -rf coverage.build @@ -19,7 +21,7 @@ cmake_flags="" if [ "${sync}" = "sync" ]; then - cmake_flags="${cmake_flags} -DREALM_ENABLE_SYNC=1" + cmake_flags="${cmake_flags} -DREALM_ENAB...
bash
d_bash_10449
--- +++ @@ -6,13 +6,13 @@ echo "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u262-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u262b10.tar.gz" ;; java11) - echo "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.7_10...
bash
d_bash_10450
--- +++ @@ -20,6 +20,7 @@ export NXF_CMD=$PWD/nextflow; export CAPSULE_LOG=none export TEST_JDK=$X_JDK +unset JAVA_TOOL_OPTIONS # this variable mess-up Capsule loader Java version parsing ( $NXF_CMD info cd validation
bash
d_bash_10451
--- +++ @@ -1,3 +1,4 @@ #!/bin/sh sudo cp firmwarePatch/xusb_sil_rel_fw-test /lib/firmware/tegra21x_xusb_firmware +/bin/echo -e "\e[1;32mFinished. Please Reboot for firmware changes to take effect.\e[0m"
bash
d_bash_10452
--- +++ @@ -1,9 +1,11 @@ -if [ $(which brew) ]; then +if [ $ZSH ]; then let head_age=`/usr/bin/stat -f "%m" $ZSH/.git/FETCH_HEAD 2> /dev/null || echo 0` let repo_age=`date +"%s"`-$head_age let grace_period="86400" # 86400 = 24 hours if [ "$repo_age" -gt "$grace_period" ]; then echo "ZSH repo is out o...
bash
d_bash_10453
--- +++ @@ -1,8 +1,11 @@ #!/bin/sh -echo "\033[32m > Start MongoDB process..." +echo "\033[32m > Start MongoDB..." echo "\033[0m" -mongod --dbpath ./data/db & -echo "\033[32m > Start Node.js process..." +mongod --dbpath ./data/db --logpath ./data/db/mongo.log & +echo "\033[32m > Start Node.js..." echo "\033[0m" ...
bash
d_bash_10454
--- +++ @@ -11,7 +11,7 @@ if [ -n "${deployments}" ] then - echo "${deployments}" | xargs -n 1 -P 5 bosh -t "${BOSH_DIRECTOR}" -n delete deployment + echo "${deployments}" | xargs -n 1 -P 5 bosh -t "${BOSH_DIRECTOR}" -n delete deployment --force fi echo "cleaning up orphaned disks and releases...
bash
d_bash_10455
--- +++ @@ -7,7 +7,7 @@ local IFS=$'\n' if [ $COMP_CWORD -eq 1 ]; then - lists=`boom | sed 's/^ \(.*\) ([0-9]\+)$/\1/'` + lists=`boom | sed 's/^ \(.*\) ([0-9]\{1,\})$/\1/'` COMPREPLY=( $( compgen -W '${lists}' -- ${cur} ) ) elif [ $COMP_CWORD -eq 2 ]; then items=`boo...
bash
d_bash_10456
--- +++ @@ -30,18 +30,18 @@ fi for nameserver in "$new_domain_name_servers"; do - echo "nameserver "$nameserver" >> "$rscf" + echo "nameserver $nameserver" >> "$rscf" done } function update_resolv_conf { - cp "$rscf" /etc/resolv.conf && rm -f "$rscf" + cp "$rscf" /etc/resolv...
bash
d_bash_10457
--- +++ @@ -2,8 +2,8 @@ # # Package : jq # Version : 1.6 -# Source repo : https://github.com/jnr/jffi -# Tested on : RHEL 7.6 +# Source repo : https://github.com/stedolan/jq.git +# Tested on : RHEL 8.4 # Script License : Apache License...
bash
d_bash_10458
--- +++ @@ -3,6 +3,7 @@ # Install ZSH sudo pkg install -y zsh sudo chsh -s `which zsh` vagrant +sudo ln -s /usr/local/bin/zsh /usr/bin/zsh # Install git sudo pkg install -y git
bash
d_bash_10459
--- +++ @@ -11,11 +11,13 @@ # Autocorrect typos in path names when using `cd` shopt -s cdspell -# Enable extended globbing -shopt -s extblob +if [[ "${BASH_VERSINFO:-0}" -ge 4 ]]; then + # Enable extended globbing + shopt -s extblob -# Automatically change into the typed directory without `cd` -shopt -s autocd ...
bash
d_bash_10460
--- +++ @@ -3,13 +3,14 @@ set -e PHP_VERSION=$1 +EXTENSION="tideways_xhprof" make distclean || true /opt/php/php-${PHP_VERSION}/bin/phpize CFLAGS="-O2" ./configure --with-php-config=/opt/php/php-${PHP_VERSION}/bin/php-config make -j2 -cp modules/tideways.so modules/tideways-xhprof-${PHP_VERSION}.so -build...
bash
d_bash_10461
--- +++ @@ -2,9 +2,9 @@ echo "::group::Install Python apps" for app in python_apps/*; do - if [[ -f "python_apps/$app/requirements-dev.txt" ]]; then - pip3 install -r "python_apps/$app/requirements-dev.txt" + if [[ -f "$app/requirements-dev.txt" ]]; then + pip3 install -r "$app/requirements-dev.txt" fi...
bash
d_bash_10462
--- +++ @@ -1,3 +1,8 @@ -export GOROOT=/usr/local/go +if [[ "$(uname)" = 'Darwin' ]]; then + export GOROOT=/usr/local/opt/go/libexec +else + export GOROOT=/usr/local/go +fi export GOPATH="$HOME/.local/gopath" -export PATH="$GOPATH/bin:$GOROOT/bin:$PATH" +export GOBIN="$GOPATH/bin" +export PATH="$GOBIN:$GOROOT/...
bash
d_bash_10463
--- +++ @@ -14,7 +14,6 @@ mkdir -p $scriptsdir cp $installerdir/postinstall $scriptsdir - cp $installerdir/wrapper/elm $bindir # This is not nice! You should download Elm and build everything from scratch @@ -38,6 +37,9 @@ productbuild --distribution Distribution.xml --package-path . --resources Resources ...
bash
d_bash_10464
--- +++ @@ -25,4 +25,4 @@ echo "Starting new test with Build Number= "$BUILD_NUMBER export RESULTS_DIR=$JOB_NAME"_"$BUILD_NUMBER export OUTPUT_FILENAME=$CONFIG_FILENAME -export COMMIT_MESSAGE="adding result file:"$OUTPUT_FILENAME" JOB: "$JOB_NAME_$BUILD_NUMBER +export COMMIT_MESSAGE="Adding result file:"$OUTPUT_FI...
bash
d_bash_10465
--- +++ @@ -16,17 +16,20 @@ eval iv=\$encrypted_${SSH_KEY_TRAVIS_ID}_iv mkdir -p ~/.ssh -openssl aes-256-cbc -K $key -iv $iv -in scripts/upload_key.enc -out ~/.ssh/id_rsa -d +openssl aes-256-cbc -K "$key" -iv "$iv" -in scripts/upload_key.enc -out ~/.ssh/id_rsa -d chmod 600 ~/.ssh/id_rsa +COMMIT=$(git rev-parse...
bash
d_bash_10466
--- +++ @@ -10,12 +10,14 @@ shopt -s extglob # Set extended pattern matching to be sure. rm -rf !(README|update.sh) -# Finally, copy the original files. +# Copy the desired dot files to this directory. echo "Password needed to properly copy files & directories." sudo cp -rp ~/.bash_aliases ~/.vim/ ~/.vimrc ~/.g...
bash
d_bash_10467
--- +++ @@ -19,6 +19,15 @@ "market" | "-m") agvtool what-marketing-version -terse1 ;; + "set") + agvtool new-marketing-version $2 + if (($+3)); then + agvtool new-version -all $3 + fi + ;; + "next" | "bump") + agvtool next-version -all + ;...
bash
d_bash_10468
--- +++ @@ -3,6 +3,11 @@ cwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "$cwd/settings.sh" + +if [[ -z $(command -v jq) ]]; then + echo "This requires jq to be installed, exiting." + exit 1 +fi #Ask for the host ID to be passed in. @@ -16,5 +21,7 @@ cmd="curl --silent -X GET -H 'content-...
bash
d_bash_10469
--- +++ @@ -1,7 +1,6 @@ #!/bin/sh # Cleans up the builds -rm -rf build/debug -rm -rf build/release +rm -rf build rm -f src/components/compiler/lex.yy.c rm -f src/components/compiler/parser.tab.c
bash
d_bash_10470
--- +++ @@ -31,8 +31,7 @@ esac # Add simplecov gem to requirements if not already present - grep "gem\W+simplecov" Gemfile - if [ ! $? ]; then + if ! egrep "gem\W+simplecov" Gemfile; then echo "gem 'simplecov', :require => false" >> Gemfile fi
bash
d_bash_10471
--- +++ @@ -12,8 +12,8 @@ sudo -u $THE_USER cp -r BenchmarkDotNet.Artifacts BenchmarkDotNet.Artifacts-temp chown -R $THE_USER.$THE_USER BenchmarkDotNet.Artifacts-temp -export FrameworkPathOverride=/usr/lib/mono/4.5/ -sudo -u $THE_USER dotnet build -c Release -f net46 /property:DefineConstants=MONO \ +sudo -u $THE...
bash
d_bash_10472
--- +++ @@ -4,7 +4,7 @@ export AWS_DEFAULT_REGION=us-east-1 -VERSION=circle-${CIRCLE_SHA1}-$(date +%s) +VERSION=circle-$(date +%s)-${CIRCLE_SHA1} ARCHIVE=${VERSION}.zip docker login -e $DOCKER_EMAIL -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
bash
d_bash_10473
--- +++ @@ -11,7 +11,13 @@ echo "Syncing original repo $origin_url' and mirror repo '$mirror_repo'" -git clone --mirror $origin_url original-repo +mkdir original-repo +# enable hidden files for * matcher +shopt -s dotglob +cp -a $workdir/sts4/* original-repo +# disable hidden files for * matcher +shopt -u dotglo...
bash
d_bash_10474
--- +++ @@ -7,11 +7,11 @@ rvm use $TEST_RUBY_VERSION echo "$ gem --version" gem --version - echo "$ rake test:install_deps" - rake test:install_deps fi if [[ "$TEST_FULL_COMPILE" = 1 ]]; then + echo "$ gem install rack --no-rdoc --no-ri" + echo "gem install rack --no-rdoc --no-ri" echo "$ ./bin/passenger-...
bash
d_bash_10475
--- +++ @@ -16,9 +16,9 @@ cd $DIR . ~/.harvester-env -if [ -f ../virtualenvs/harvester/bin/activate ]; then +if [ -f ./bin/activate ]; then set +u -. ../virtualenvs/harvester/bin/activate +. ./bin/activate set -o nounset ## set -u : exit the script if you try to use an uninitialised variable else echo <...
bash
d_bash_10476
--- +++ @@ -2,6 +2,18 @@ GIT_BRANCH="master" SERVER_NAME="localhost" ENV_FILE="$WORKSPACE/atmo-extras/clank_init/build_env/variables.yml@vagrant" + + + + +# screw it - I'm writing functions... +create_if_does_not_exist() { + if [ ! -d "$1" ]; then + echo "making directory & chown-ing... "; + sudo ...
bash
d_bash_10477
--- +++ @@ -14,7 +14,8 @@ exit 1 fi -sudo pip install flask-script flask-restful Celery six discover unittest2 pychef requests +sudo pip install -r $COMPASSDIR/requirements.txt +sudo pip install -r $COMPASSDIR/test-requirements.txt if [[ "$?" != "0" ]]; then echo "failed to install pip packages" ex...
bash
d_bash_10478
--- +++ @@ -1,9 +1,10 @@ #!/bin/bash + # Original Author: Austin Basye (https://twitter.com/ATBasye/status/844563088871448576) # Author: Matthew Feickert # Date: 2017-03-22 -keyboard_interrupt() { +function keyboard_interrupt() { trap SIGINT if [[ -f linuxSource ]]; then rm -rf linux-0.01.tar.gz linu...
bash
d_bash_10479
--- +++ @@ -1,9 +1,8 @@ #!/usr/bin/env sh -IS_HHVM=`php -r "var_export(defined('HHVM_VERSION'));"`; BASEDIR=$(dirname $0); -if [ $IS_HHVM ] ; then +if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then exit 0; fi
bash
d_bash_10480
--- +++ @@ -11,7 +11,7 @@ echo ""; echo "********************************************"; echo "Running tests in $f"; - th $f; + lua $f; var=$(($var+$?)) count=$(($count+1)) echo "End $f";
bash
d_bash_10481
--- +++ @@ -1,9 +1,24 @@ #!/bin/sh -echo " Installing rvm for you." +read -p 'Choose version manager: 1 - RVM, 2 - Rbenv -' version_manager -gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 +if [ "$version_manager" == "1" ] +then + echo " Installing rvm for you." -sud...
bash
d_bash_10482
--- +++ @@ -37,3 +37,8 @@ bindkey '^[[5C' end-of-line bindkey '^[[3~' delete-char bindkey '^?' backward-delete-char + +# Edit current command line using $EDITOR +autoload -z edit-command-line +zle -N edit-command-line +bindkey -M vicmd v edit-command-line
bash
d_bash_10483
--- +++ @@ -1,6 +1,6 @@ #!/bin/bash set -ev -modules="core java io cli dsl service maven-plugin gradle-plugin dashboard example maven-archetype" +modules="core java io cli dsl maven-plugin gradle-plugin dashboard example maven-archetype" for module in $modules do pushd ..
bash
d_bash_10484
--- +++ @@ -9,3 +9,21 @@ if [[ `$IMPORT | head -n 2 | tail -n 1` != "Usage: import output.db repo thing [thing ...]" ]]; then exit 1 fi + +METADATA_DB="./import_metadata.db" +sqlite3 $METADATA_DB < ../schema.sql +CENTOS_REPO="centos.repo" + +### test that we can import a single RPM from HTTPS URL +$IMPORT $MET...
bash
d_bash_10485
--- +++ @@ -9,3 +9,8 @@ return 0 } complete -o nospace -F _script hls +complete -o nospace -F _script hcat +complete -o nospace -F _script hrm +complete -o nospace -F _script hdu +complete -o nospace -F _script simprot +complete -o nospace -F _script richprot
bash
d_bash_10486
--- +++ @@ -7,4 +7,17 @@ pip install -U pip hash -r pip install virtualenv virtualenvwrapper -sudo -u postgres createuser --superuser vagrant +sudo -u postgres createuser --superuser vagrant || true + +# We want nodejs 0.10.11 to match our Chef servers +if [ ! -e /usr/local/bin/npm ] ; then + wget https://nodejs....
bash
d_bash_10487
--- +++ @@ -5,7 +5,7 @@ rm $GOPATH/bin/* go install ./... -$GOPATH/bin/rqlited ${TMP_DATA}_1 & +$GOPATH/bin/rqlited -http localhost:4001 -raft localhost:4002 ${TMP_DATA}_1 & sleep 5 $GOPATH/bin/rqlited -http localhost:4003 -raft localhost:4004 -join http://localhost:4001 ${TMP_DATA}_2 & sleep 5
bash
d_bash_10488
--- +++ @@ -8,7 +8,7 @@ exit 1 fi cat proflibs.?? | tar --unlink -xpzf - -C ${DESTDIR:-/} -cd ${DESTDIR:-/}usr/lib +cd ${DESTDIR}/usr/lib if [ -f libdescrypt_p.a ] then ln -f -s libdescrypt_p.a libcrypt_p.a
bash
d_bash_10489
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash BASEDIR=$(dirname "$0") -java -Xmx64m -jar $BASEDIR/zonkybot-app-${project.version}.jar "$@" +$JAVA_HOME/bin/java -Xmx64m -jar $BASEDIR/zonkybot-app-${project.version}.jar "$@"
bash
d_bash_10490
--- +++ @@ -2,5 +2,5 @@ # Installs or updates the Atom Editor (.deb) with favorite packages cd /tmp && wget https://atom.io/download/deb -O atom-editor.deb && sudo dpkg -i ./atom-editor.deb && apm install sublime-style-column-selection \ -color-picker emmet file-icons language-vue linter linter-eslint linter-php \...
bash
d_bash_10491
--- +++ @@ -26,7 +26,7 @@ SIZE=`dir_size $INPUT_HDFS` START_TIME=`timestamp` -run_spark_job com.intel.hibench.sparkbench.ml.LDAExample $INPUT_HDFS $OUTPUT_HDFS $NUM_TOPICS_LDA +run_spark_job com.intel.hibench.sparkbench.ml.LDAExample $INPUT_HDFS $OUTPUT_HDFS $NUM_TOPICS_LDA $MAXRESULTSIZE_LDA END_TIME=`timestamp...
bash
d_bash_10492
--- +++ @@ -2,3 +2,10 @@ . src/misc.sh sh $toolshed_dir/run_tool_shed.sh --stop-daemon + +echo "Do you want to remove $toolshed_dir? (Y/n)" +read answer +if (( $answer == "y" )) || (( $answer == "Y" )); then + echo " Remove $toolshed_dir" + rm -rf $toolshed_dir +fi
bash
d_bash_10493
--- +++ @@ -1,7 +1,15 @@ +#!/bin/bash +set -e + acbuild --debug begin + +trap "acbuild --debug abort" EXIT + acbuild --debug dep add aci.gonyeo.com/nginx acbuild --debug copy git/blog/_site /usr/html acbuild --debug port add http tcp 80 acbuild --debug set-name "aci.gonyeo.com/blog" acbuild --debug set-exec -- ...
bash
d_bash_10494
--- +++ @@ -1,2 +1,3 @@ node ./node_modules/coffee-script/bin/coffee -c ./src -rm -rf /root/.ssh/* /build/app/deploy_key /app/deploy_key /build/app/Makefile /app/Makefile +rm -rf /root/.ssh/* /build/app/deploy_key /app/deploy_key /build/app/Makefile /app/Makefile /app/src/*.coffee +npm uninstall coffee-script
bash
d_bash_10495
--- +++ @@ -14,5 +14,3 @@ touch /data/vendor/simplesamlphp/simplesamlphp/modules/sildisco/default-enable apachectl -k graceful - -./src/add-test-users
bash
d_bash_10496
--- +++ @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash FLEX=`which flex35 2>/dev/null || which flex 2>/dev/null` if [ $? -ne 0 ]
bash
d_bash_10497
--- +++ @@ -1 +1,2 @@ +#!/bin/sh elm-live examples/$1/Main.elm --dir=examples/$1 --output examples/$1/elm.js --debug --open --pushstate
bash
d_bash_10498
--- +++ @@ -4,12 +4,12 @@ set -o pipefail PLATFORM=$(uname -s | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/") -COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n') -GITSHA=$(echo "$COMMIT_MESSAGE" | grep -oE '\[publish [a-z0-9\-\.]+\]' | grep -oE '[a-z0-9\-\.]+' | tail -n1) +COM...
bash
d_bash_10499
--- +++ @@ -2,4 +2,4 @@ git submodule update --init (cd servers/0.8.0/kafka-src && ./sbt update package assembly-package-dependency) -(cd servers/0.8.1/kafka-src && ./gradlew jarAll) +(cd servers/0.8.1/kafka-src && ./gradlew jar)
bash