document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_11200
--- +++ @@ -11,11 +11,7 @@ else if [ "$name" != 'install.sh' ] && [ "$name" != 'README.md' ] && [ "$name" != 'uninstall.sh' ]; then echo "Creating $target" - if [ ! -d "$name" ] && [ -n "$(grep "$cutstring" "$name")" ]; then - cp "$PWD/$name" "$target" - else - ln -s "$PWD/$name...
bash
d_bash_11201
--- +++ @@ -7,30 +7,28 @@ if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ -n $DATADOG_API_KEY ] + then echo "Reporting coverage stats to datadog" - git clone test-metrics https://github.com/wedaly/test-metrics + git clone https://github.com/wedaly/test-metrics ...
bash
d_bash_11202
--- +++ @@ -17,13 +17,14 @@ # replace all occurrences - ${parameter//pattern/string} ASDF_BIN="${ASDF_DIR}/bin" ASDF_SHIMS="${ASDF_DIR}/shims" -ASDF_USER_SHIMS="${ASDF_DATA_DIR:-$HOME/.asdf}" +ASDF_USER_SHIMS="${ASDF_DATA_DIR:-$HOME/.asdf}/shims" [[ ":$PATH:" == *":${ASDF_BIN}:"* ]] && PATH="${PATH//$ASDF_BIN:/}"...
bash
d_bash_11203
--- +++ @@ -19,11 +19,11 @@ git commit -m "Update expected results for $1" fi -RUN_REGRESSION_TESTS=$1 ruby test/regression/smart_answers_regression_test.rb +RUN_REGRESSION_TESTS=$1 bundle exec ruby test/regression/smart_answers_regression_test.rb if [[ -n "$(git status --porcelain)" ]]; then git add test...
bash
d_bash_11204
--- +++ @@ -13,7 +13,7 @@ cargo test --all-targets if [ "${TRAVIS_OS_NAME}" = "windows" ]; then - cargo wix --output target/deploy/ --nocapture --bin-path WiX.3.11.1/tools + cargo wix --output target/deploy/ --nocapture --bin-path WiX.3.11.*/tools elif [ "${TRAVIS_OS_NAME}" = "linux" ]; then cargo deb --out...
bash
d_bash_11205
--- +++ @@ -8,7 +8,4 @@ export PATH eval "$(rbenv init -)" - -if [ -f "$(brew --prefix)/etc/bash_completion" ]; then - . "$(brew --prefix)/etc/bash_completion" -fi +source "$(brew --prefix)/etc/bash_completion"
bash
d_bash_11206
--- +++ @@ -4,6 +4,8 @@ if ! cmp --silent bower.json vendor/assets/bower_components/bower.json; then rm -rf vendor/assets/bower_components fi + +yarn if [ -d vendor/assets/bower_components ]; then # Using bower_components from cache
bash
d_bash_11207
--- +++ @@ -17,4 +17,4 @@ PACKAGES_GREP="freeipa-server|freeipa-server-trust-ad|freeipa-tests|freeipa-admintools|freeipa-client|freeipa-python" # Installs only the dependencies for the FreeIPA packages -yum deplist $PACKAGES | grep provider | awk '{print $2}' | sort | uniq | grep -v $PACKAGES_GREP | sed ':a;N;$!b...
bash
d_bash_11208
--- +++ @@ -3,3 +3,5 @@ VERSION=${2:-$(cat build.sbt | egrep '^version :=' | awk -F\" '{ print $2 }')} echo "Signing released files..." curl -H "X-GPG-PASSPHRASE: $GPG_PASSPHRASE" "-u$BINTRAY_USER:$BINTRAY_API_KEY" -X POST "https://api.bintray.com/gpg/$BINTRAY_USER/releases/$NAME/versions/$VERSION" +echo "Publishi...
bash
d_bash_11209
--- +++ @@ -2,16 +2,17 @@ COPY_DESTINATION_PATH="$TARGET_BUILD_DIR"/"$CONTENTS_FOLDER_PATH"/StoryboardInfo if [ -d "$COPY_DESTINATION_PATH" ]; then -rm -rf $COPY_DESTINATION_PATH +rm -rf "$COPY_DESTINATION_PATH" fi -mkdir $COPY_DESTINATION_PATH +mkdir "$COPY_DESTINATION_PATH" # Copy all storyboard Info.plis...
bash
d_bash_11210
--- +++ @@ -3,7 +3,7 @@ then path=cmake else - path=/project/cmake + path=/project/bin/cmake fi echo 'Building assimp...' cd assimp_unzipped
bash
d_bash_11211
--- +++ @@ -14,3 +14,16 @@ rmenv() { rm -r "$WORKON_HOME"/"$(basename "$PWD")" } + +# Recreate Python virtualenv associated with this directory +reenv() { + if [ -f "$VIRTUAL_ENV/bin/python3" ]; then + local binary=python3 + elif [ -f "$VIRTUAL_ENV/bin/python2" ]; then + local binary=python2 + fi + if [ ! -z "$...
bash
d_bash_11212
--- +++ @@ -14,10 +14,10 @@ $JMETER_HOME/bin/jmeter -n -f \ -l $SAMPLE_LOG -j $TEST_LOG \ --t $SCRIPTPATH/jmeter/amqp_messaging_throughput_test.jmx \ +-t $SCRIPTPATH/amqp_messaging_throughput_test.jmx \ -Jplugin_dependency_paths=$HONO_HOME/jmeter/target/plugin \ -Jjmeterengine.stopfail.system.exit=true \ -Jdef...
bash
d_bash_11213
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -git describe --long --always --dirty 2>/dev/null +git describe --always --dirty 2>/dev/null if [ $? -ne 0 ] then echo unknown
bash
d_bash_11214
--- +++ @@ -3,15 +3,12 @@ # Install packages apps=( - atom - dropbox iterm2 - macdown slack - sublime-text vagrant vagrant-manager virtualbox + visual-studio-code ) brew cask install "${apps[@]}"
bash
d_bash_11215
--- +++ @@ -3,7 +3,7 @@ # First create the container cd install/lxc/ -sed -i 's/sleep 5/sleep 10/g' create-lxc +sed -i 's/sleep 5/sleep 10/g' create-lxc-one5 sudo ./create-lxc-one5 onetest --create
bash
d_bash_11216
--- +++ @@ -15,6 +15,9 @@ echo "Initialize module" elif [ "${1}" = "bash" ] ; then bash +elif [ "${1}" = "report" ] ; then + export KB_SDK_COMPILE_REPORT_FILE=./work/compile_report.json + make compile else echo Unknown fi
bash
d_bash_11217
--- +++ @@ -1,4 +1,5 @@ #!/usr/bin/env bash # Run the test suite. -python -m unittest discover -v +python2 -m unittest discover -v && +python3 -m unittest discover -v
bash
d_bash_11218
--- +++ @@ -4,4 +4,4 @@ cd ./zstd-1.3.0/lib emmake make SHARED_EXT='bc' lib-release -emcc libzstd.bc -s 'EXPORT_NAME="libzstd"' -s 'EXPORTED_FUNCTIONS=["_ZSTD_versionNumber", "_ZSTD_decompress", "_ZSTD_getFrameContentSize", "_ZSTD_isError"]' -s 'MODULARIZE=1' -s 'ALLOW_MEMORY_GROWTH=1' -o ../../libzstd.js +emcc l...
bash
d_bash_11219
--- +++ @@ -27,11 +27,15 @@ fi # build and install mapcache -autoreconf --force --install || die "autoreconf failed" -./configure --prefix=${PREFIX}/mapcache-install --without-sqlite --without-bdb --disable-module || die "configure failed" +if [ -f ./CMakeLists.txt ]; then # it's a cmake build + cmake CMakeLis...
bash
d_bash_11220
--- +++ @@ -3,10 +3,10 @@ COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - tasks="clean compile deps help install jar new pom test uberjar version" + tasks="classpath clean compile deploy deps help install interactive jar javac new plugin pom repl run swank test t...
bash
d_bash_11221
--- +++ @@ -11,7 +11,7 @@ add_pipeline_metadata_basic() { jq ". + [ - {name: \"counter\", value: $(jq '.counter' < $1)}, + {name: \"counter\", value: $(jq '.counter | tostring' < $1)}, {name: \"result\", value: $(jq '.result' < $1)}, {name: \"commit\", value: $(jq '.commits | .[0].sha'...
bash
d_bash_11222
--- +++ @@ -4,7 +4,7 @@ # Install nlopt from source since Ubuntu 12.04 does not provide debian package for nlopt curl -o nlopt-2.4.1.tar.gz http://ab-initio.mit.edu/nlopt/nlopt-2.4.1.tar.gz tar -xf nlopt-2.4.1.tar.gz - (cd nlopt-2.4.1/; sh autogen.sh; make && sudo make install) + (cd nlopt-2.4.1/; sh autog...
bash
d_bash_11223
--- +++ @@ -6,7 +6,7 @@ mkdir --parents /b/storage/ # Add env vars to ~/.bashrc -echo 'export GOROOT=/usr/lib/go' >> ~/.bashrc +echo 'export GOROOT=/usr/local/go' >> ~/.bashrc echo 'export GOPATH=/b/skia-repo/go/' >> ~/.bashrc echo 'export PATH=$GOPATH/bin:$PATH' >> ~/.bashrc source ~/.bashrc @@ -14,9 +14,18 @...
bash
d_bash_11224
--- +++ @@ -14,3 +14,11 @@ grep "^s[0-9].*" FILE # grep with OR \| grep "^s[0-9].*\|wave.*" actionLabel.txt + + +# Remove newlines in file +tr -d "\n\r" < input_filename +# Replace newlines with \\n +sed ':a;N;$!ba;s/\n/\\n/g' file +# Replace newlines with \\n +sed -z 's/\n/\\n/g' file
bash
d_bash_11225
--- +++ @@ -3,10 +3,10 @@ case "$1" in java17) - echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot_17_35.tar.gz" + echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jdk_x64_linux_hotspot_17.0.1...
bash
d_bash_11226
--- +++ @@ -10,6 +10,6 @@ ./bin/WangscapeTest ../doc for d in ../doc/examples/*/ ; do - echo "Running example in $d/" + echo "Running example in $d" ./bin/Wangscape "$d"/example_options.json done
bash
d_bash_11227
--- +++ @@ -22,7 +22,7 @@ pushd doc/html git add --all . git commit --allow-empty -m "Update documentation to ${TRAVIS_COMMIT:0:7}" - git push --force ${SSH_REPO} gh-pages > /dev/null 2>$1 + git push --force ${SSH_REPO} gh-pages &>/dev/null popd fi fi
bash
d_bash_11228
--- +++ @@ -28,7 +28,9 @@ srcdir=`dirname $0` fi -[ -d $srcdir/$test_name ] && cd $srcdir/$test_name +testdir=$srcdir/$test_name +[ -d $testdir ] || mkdir $testdir +cd $testdir function run_test { $* || (echo $test_name: failed: "$*" >&2; return 2)
bash
d_bash_11229
--- +++ @@ -38,7 +38,7 @@ chmod +x $buildFile # Cleanup - if test ! -d $tempFolder; then + if test -d $tempFolder; then rm -rf $tempFolder fi fi
bash
d_bash_11230
--- +++ @@ -3,15 +3,16 @@ dockerComposeVersion=1.10.1 sudo su << SudoUser - yum -y remove docker \ - docker-common \ - container-selinux \ - docker-selinux \ - docker-engine - rm -rf /var/lib/docker - rm /usr/local/bin/docker-compose - yum -y remove ...
bash
d_bash_11231
--- +++ @@ -6,6 +6,7 @@ rm -rf /opt/thinkbig mysql -e "drop database thinkbig;" mysql -e "show databases;" +userdel thinkbig echo "Uninstalling NiFi" service nifi stop
bash
d_bash_11232
--- +++ @@ -12,7 +12,7 @@ docker build -t webapp . echo "Starting WEBSERVER container" -docker run -d --name webserver -p 80:80 webapp +docker run --restart=always -d --name webserver -p 80:80 webapp servername="http://frenchquarterinns.com" response=$(curl --write-out %{http_code} --silent --output /dev/null...
bash
d_bash_11233
--- +++ @@ -15,10 +15,11 @@ function run_task { local task=$1 + echo -n $task "" if sh continuous-integration/$task.sh > /dev/null; then - echo $task done; + echo done else - echo $task failed; + echo failed exit 1 fi } @@ -29,11 +30,11 @@ done } +echo Build time: $(date --utc "+%d/%m/%Y %H:%...
bash
d_bash_11234
--- +++ @@ -4,10 +4,11 @@ # Clone gh-pages into build cd docs/ +rm -rf build/ git clone git@github.com:palantir/atlasdb.git -b gh-pages build # Rebuild the docs into the repo -make html +make html || { echo "doc build failed, build should not pass"; exit 1; } cd build/ # Just to report status of repo in t...
bash
d_bash_11235
--- +++ @@ -7,5 +7,12 @@ python manage.py migrate --fake reports zero python manage.py migrate --fake workflow zero +echo "#### Delete old migration scripts ####" +find . -path "*/migrations/*.py" -not -name "__init__.py" -delete +find . -path "*/migrations/*.pyc" -delete + +echo "#### Create the initial migrati...
bash
d_bash_11236
--- +++ @@ -9,7 +9,7 @@ if [[ "$OP" == "lint" ]] then echo "Linting Lambdas" - flake8 . + flake8 --exclude six.py,six-*,structlog* . elif [[ "$OP" == "test" ]] then echo "Testing Lambdas"
bash
d_bash_11237
--- +++ @@ -11,7 +11,7 @@ export TRAIN_WAVLIST="$GROUP_DIR/p/sami/audio_data/est-F/train.scp" export TRAIN_GAUSSIANS=30000 -export TRAIN_BATCHES=5 +export TRAIN_BATCHES=25 #export TRAIN_CLUSTERS=5 export TRAIN_SCRIPTDIR="$GROUP_DIR/Modules/src/git/AaltoASR/aku/scripts"
bash
d_bash_11238
--- +++ @@ -4,6 +4,7 @@ echo 'Python install' ( + sudo pip install --upgrade pip sudo pip install biopython sudo pip install pylint sudo pip install ./python
bash
d_bash_11239
--- +++ @@ -18,9 +18,10 @@ fi # Allow ssh to KF_SERVER -mkdir -p .ssh -echo "Host $KF_SERVER" >> .ssh/config -echo "StrictHostKeyChecking no" >> .ssh/config +# NOTE! You need to clean this if not run on a build server! +mkdir -p ~/.ssh +echo "Host $KF_SERVER" >> ~/.ssh/config +echo "StrictHostKeyChecking no" >> ~...
bash
d_bash_11240
--- +++ @@ -2,7 +2,7 @@ cd "$(dirname "$0")" git pull function doIt() { - rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~ + rsync --exclude ".git/" --exclude "init/" --exclude ".DS_Store" --exclude "bootstrap.sh" --exclude "README.md" -av . ~ } if [ "$1" == "-...
bash
d_bash_11241
--- +++ @@ -30,4 +30,8 @@ exit 0 fi echo "check_doxygen.sh: Doxygen errors or warnings; see doxygen.err" +if [ "$USER" != "bradbell" ] +then + exit 0 +fi exit 1
bash
d_bash_11242
--- +++ @@ -12,7 +12,14 @@ | sed -e "s/\"user\": \"root\"/\"user\": \"$user\"/"\ | sed -e "s/\"pass\": \"\"/\"pass\": \"$pass\"/" \ > config.json +node commands.js createDataForDebug mysql --user=$user --password=$pass -e "drop database map2;" mysql --user=$user --password=$pass < sql/1-create-schema.sql ...
bash
d_bash_11243
--- +++ @@ -14,7 +14,12 @@ exit 0; fi -if [ ! -x `which expect` ]; then +if [ -n "$KERNEL" ]; then + echo 'Please rebuild skiboot without KERNEL set. Skipping hello_world test'; + exit 0; +fi + +if [ ! `command -v expect` ]; then echo 'Could not find expect binary. Skipping hello_world test'; ...
bash
d_bash_11244
--- +++ @@ -18,7 +18,7 @@ fi export PYTHON="${PYTHON:=python}" -export PYTHONPATH="${PYTHONPATH}:`realpath .`" +export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}`realpath .`" for script in tests/run_*_tests.sh ; do if ! sh $script ; then echo "Failed $script"
bash
d_bash_11245
--- +++ @@ -1,4 +1,5 @@ GIT=https://gitlab.redox-os.org/redox-os/uutils.git +BRANCH=redox-unix GIT_UPSTREAM=https://github.com/uutils/coreutils.git CARGOFLAGS="--no-default-features --features redox --bin uutils -- -C lto"
bash
d_bash_11246
--- +++ @@ -4,6 +4,10 @@ sed -i 's|PG.connectHost = "localhost"|PG.connectHost = "'"${DBHOST}"'"|g' src/Main.hs +if [ "$TRAVIS" = "true" ]; then + sed -i 's|PoolCfg 50 50 60|PoolCfg 20 25 60|g' src/Main.hs +fi + ${IROOT}/stack --allow-different-user build --install-ghc ${IROOT}/stack --allow-diffe...
bash
d_bash_11247
--- +++ @@ -15,7 +15,7 @@ # http://www.linuxquestions.org/questions/showthread.php?p=4399340#post4399340 # add 'single-request-reopen' so it is included when /etc/resolv.conf is generated echo 'RES_OPTIONS="single-request-reopen"' >> /etc/sysconfig/network - service network restart + systemctl restart netw...
bash
d_bash_11248
--- +++ @@ -18,7 +18,13 @@ echo "Hostname: $HOSTNAME" echo "Running: drush hostmaster-install" -drush hostmaster-install $HOSTNAME --aegir_db_host=database --aegir_db_pass=$MYSQL_ROOT_PASSWORD --aegir_db_port=3306 --aegir_db_user=root --aegir_host=$HOSTNAME -y +drush hostmaster-install -y $HOSTNAME \ + --aegir_d...
bash
d_bash_11249
--- +++ @@ -2,7 +2,7 @@ set -e -echo "1) Update the version in PopuBridge/build.gradle" +echo "1) Update the version, and versionCode in PopuBridge/build.gradle" echo "2) Update the version in the CHANGELOG and make sure that all changes have been noted" echo "3) Update the version in the README, include the S...
bash
d_bash_11250
--- +++ @@ -19,7 +19,7 @@ source activate pandas conda install -n pandas -c r r rpy2 --yes - time sudo apt-get $APT_ARGS install dvipng + time sudo apt-get $APT_ARGS install dvipng texlive-latex-base texlive-latex-extra mv "$TRAVIS_BUILD_DIR"/doc /tmp cd /tmp/doc
bash
d_bash_11251
--- +++ @@ -1,13 +1,14 @@ #!/bin/bash + # As the last command send to router before any rules operation, wait until boot up done __TIMEOUT=240 __FLAGFILE=/var/cache/cloud/boot_up_done done=0 -for i in `seq 1 $((${__TIMEOUT} * 10))` +for i in `seq 1 $(($__TIMEOUT * 10))` do - if [ -e ${__FLAGFILE} ] + ...
bash
d_bash_11252
--- +++ @@ -32,7 +32,7 @@ KUBE_GCS_UPLOAD_RELEASE=y KUBE_GCS_RELEASE_BUCKET=kubernetes-release KUBE_GCS_PROJECT=google-containers -KUBE_GCS_RELEASE_PREFIX=release/${KUBE_RELEASE_VERSION} +KUBE_GCS_RELEASE_PREFIX=release/${KUBE_RELEASE_VERSION}/ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. source "$KUBE_ROOT/build/...
bash
d_bash_11253
--- +++ @@ -1,20 +1,24 @@ #!/bin/sh set -eu + +if [[ ${#} != 1 ]] +then + echo "Requires data directory!" + exit 1 +fi + +DATA_DIRECTORY=$1 + +THIS=$( cd $( dirname $0 ) ; /bin/pwd ) # PYTHONPATH PP= PP+=/soft/analytics/conda/env/Candle_ML/lib/python2.7/site-packages: PP+=/soft/analytics/conda/env/Candle_ML...
bash
d_bash_11254
--- +++ @@ -1,5 +1,13 @@ #!/bin/bash # -# Copy rolled log files to S3. +# Compress and copy rolled log files to S3. +# First line loads AWS variables out of our bash profile, +# so the AWS CLI tools can get our credentials. # ---------------------------------------------------------------------- -aws s3 cp --regio...
bash
d_bash_11255
--- +++ @@ -4,9 +4,9 @@ docker buildx build --platform linux/amd64 -t $GITHUB_REPOSITORY:latest . if [[ "$GITHUB_EVENT_NAME" == "push" && $GITHUB_REF == refs/heads/master ]]; then - docker tag $REPO:latest $GITHUB_REPOSITORY:${GITHUB_SHA::8} + docker tag $GITHUB_REPOSITORY:latest $GITHUB_REPOSITORY:${GITHUB_SHA...
bash
d_bash_11256
--- +++ @@ -10,6 +10,7 @@ git config --global user.email $GIT_EMAIL git config --global user.name $GIT_USERNAME +mkdir ~/.ssh ssh-keyscan github.com >> ~/.ssh/known_hosts if [ -z "$(gem fetch license_finder -v $build_version 2>&1 | grep ERROR)" ]; then
bash
d_bash_11257
--- +++ @@ -13,7 +13,7 @@ pip3 install -r requirements.txt # Set up node -npm install +npm ci # Set up supervisor cp config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
bash
d_bash_11258
--- +++ @@ -20,6 +20,6 @@ if [ "$TRAVIS_REPO_SLUG" = "ElementsProject/elements" -a "$TRAVIS_EVENT_TYPE" = "cron" ]; then git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit - while read -r LINE; do travis_retry gpg --keyserver hkp://subset.pool.sks-...
bash
d_bash_11259
--- +++ @@ -1,4 +1,8 @@ BaseFileUtil(){ + getFileExtension(){ + file=${1} + echo ${file/*[.]/} + } getFileStatus(){ if [[ $(ls | grep ${1}) == "" ]]; then
bash
d_bash_11260
--- +++ @@ -10,7 +10,7 @@ echo "install start" # Get shellcheck. -curl https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz --output shellcheck-stable.tar.xz +curl --fail --location --show-error --silent https://github.com/koalaman/shellcheck/releases/download/stab...
bash
d_bash_11261
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash /opt/envsubst < /envsubst_template.json > /conf/runtime.json -exec java -jar /git-bridge.jar /conf/runtime.json +exec java -Xms512m -Xmx3072m -jar /git-bridge.jar /conf/runtime.json
bash
d_bash_11262
--- +++ @@ -1,7 +1,7 @@ apt-get install -y apt-transport-https lsb-release ca-certificates apt-get update -apt-get install -y curl git nginx php7.3-fpm php-curl php-xml php-zip unzip zip +apt-get install -y curl git nginx php7.3-fpm php-curl php-mbstring php-pgsql php-xml php-zip unzip zip if [ ! -e /usr/local...
bash
d_bash_11263
--- +++ @@ -17,7 +17,4 @@ cmake_osflags="$cmake_osflags -DENABLE_TESTS=1" fi -set -e -mkdir -p build -cd build -cmake ../ -DCMAKE_INSTALL_PREFIX=$depends_prefix -DWSIZE=64 -DMULTI=PTHREAD -DARITH=gmp $cmake_osflags +cmake -Bbuild -H. -DCMAKE_INSTALL_PREFIX=$depends_prefix -DWSIZE=64 -DMULTI=PTHREAD -DARITH=gmp ...
bash
d_bash_11264
--- +++ @@ -20,6 +20,7 @@ # install requirements pacman -Syu --noconfirm --needed \ base-devel \ + pacman-contrib \ cmake \ git \ unzip \
bash
d_bash_11265
--- +++ @@ -1,6 +1,7 @@ #!/bin/bash set -eux -o pipefail +cargo fmt --version || rustup component add rustfmt cargo fmt -- --check cargo build cargo test
bash
d_bash_11266
--- +++ @@ -20,6 +20,21 @@ echo "Error runnig application..." FAILED=1 fi + cd ../../.. + + echo "Running sample server" + java -jar redpen-server/target/redpen-server.war & + if [ -z "$(pgrep redpen)" ] + then + echo "RedPen server is nunning as expected ..." + sleep 5 + echo "Killing ...
bash
d_bash_11267
--- +++ @@ -1 +1,2 @@ -scp build/ NYoShWorkbench-129.1-1.0\ EAP1-linux.tar.gz +find build/artifacts/NYoShWorkbenchDistribution/ -name NYoShWorkbench-\*|xargs -I{} scp {} campagnelab.org:/www/files/ +
bash
d_bash_11268
--- +++ @@ -1,5 +1,5 @@ #!/bin/sh -version="0.1.0" +version=$(git describe --dirty) rm -f $(ls | grep "\.mmip$") "/c/Program Files/7-Zip/7z.exe" a -tzip -- AutoPlayer-$version.mmip $(find . -type f -name "*.vbs" -o -name "*.ini")
bash
d_bash_11269
--- +++ @@ -8,18 +8,18 @@ echo "Backing up $MONGO_DATABASE" if [ ! -z ${MONGO_ORIGIN_URI:-} ]; then - mongodump --uri="$MONGO_ORIGIN_URI" -o mongodb_backup + mongodump --ssl --uri="$MONGO_ORIGIN_URI" -o mongodb_backup else - mongodump -h "$MONGO_ORIGIN_HOST" -d "$MONGO_DATABASE" -u "$MONGO_ORIGIN_USER" -p "$M...
bash
d_bash_11270
--- +++ @@ -5,6 +5,7 @@ declare -a extensions=( EditorConfig.EditorConfig + lehni.vscode-titlebar-less-macos msjsdiag.debugger-for-chrome PeterJausovec.vscode-docker smockle.xcode-default-theme
bash
d_bash_11271
--- +++ @@ -29,7 +29,7 @@ do sync_mailboxes - sleep 250 + sleep 60 done }
bash
d_bash_11272
--- +++ @@ -3,7 +3,7 @@ abspath () { case `uname -s` in CYGWIN*) - echo $(cygpath -ua "$1") + echo $(cygpath -ua "$1") | sed 's:/$::g' ;; Darwin) #[[ $(echo $1 | awk '/^\//') == $1 ]] && echo "$1" || echo "$PWD/$1"
bash
d_bash_11273
--- +++ @@ -1,12 +1,14 @@ #!/bin/bash -rm -rf build || exit 0; -mkdir build; -./node_modules/shark-cli/bin/shark site/build-project -( cd build - git init - git config user.name "${GIT_NAME}" - git config user.email "${GIT_EMAIL}" - git add . - git commit -m "Deployed" - git push --force --quiet "https://${GH_TOKEN}...
bash
d_bash_11274
--- +++ @@ -1,4 +1,4 @@ #!/bin/sh -CLASSPATH=${CLASSPATH}:.:../lib/commons-cli-1.2.jar:../lib/commons-io-2.4.jar:../lib/derby-10.10.2.0.jar:../lib/fastjson-1.1.41.jar:../lib/javassist-3.7.ga.jar:../lib/logback-classic-1.0.13.jar:../lib/logback-core-1.0.13.jar:../lib/mysql-connector-java-5.1.31.jar:../lib/netty-all-4...
bash
d_bash_11275
--- +++ @@ -6,6 +6,7 @@ mkdir -p /tmp/subs/twig chmod 777 -R /tmp/subs +php composer.phar config -g discard-changes 1 # Discard changes in vendor files php composer.phar install --no-dev # Install dependencies, if needed. Only prod ones ./app/console app:twig:clear-cache # Clear the Twig cache
bash
d_bash_11276
--- +++ @@ -1,8 +1,10 @@ #!/usr/bin/env bash -NIX_ENV_LOCATION=$HOME/.nix-profile/bin/nix-env -if [[ -f $NIX_ENV_LOCATION ]]; then +NIX_BIN_LOCATION=$HOME/.nix-profile/bin +if [[ -f $NIX_BIN_LOCATION/nix-env ]]; then echo "Installing nix packages" - $NIX_ENV_LOCATION -iA nixpkgs.bat nixpkgs.fzf nixpkgs.gitAn...
bash
d_bash_11277
--- +++ @@ -4,10 +4,16 @@ if [ "${PACKER_BUILDER_TYPE}" = "parallels-iso" ]; then printf "==> %s\n" "Installing Parallels tools" - mount -o loop /home/${SSH_USER}/prl-tools-lin.iso /mnt + + if [ -s /home/${SSH_USER}/prl-tools-manual.iso ]; then + mount -o loop /home/${SSH_USER}/prl-tools-manual.iso /mnt + else ...
bash
d_bash_11278
--- +++ @@ -21,13 +21,6 @@ # restart tomcat sudo service tomcat7 restart > /dev/null -# configure iptables port forwarding -echo "... Configuring port forwarding ..." -# configure iptables to forward incoming requests on port 80 to port 8080 so they hit tomcat -sudo iptables -t nat -I PREROUTING -p tcp --dport 80...
bash
d_bash_11279
--- +++ @@ -3,6 +3,7 @@ alias ls='ls --color=auto' alias docker-shell='docker run --rm --interactive --tty --volume "$PWD:/docker"' alias ping='ping -c 10' +alias pu=pushd po=popd d='dirs -v' if command -v exa >/dev/null 2>&1 then alias ll='exa --long' la='exa --all' tree='exa --tree'
bash
d_bash_11280
--- +++ @@ -2,11 +2,9 @@ set -e -# Takes first entry in GOPATH in case has multiple entries -GOPATH=`echo $GOPATH | tr ':' '\n' | head -1` BEATNAME=$1 BEATPATH=$2 -LIBBEAT=${GOPATH}/src/github.com/elastic/beats/libbeat +LIBBEAT=../libbeat # Setup if [ -z $BEATNAME ]; then @@ -19,7 +17,7 @@ exit; fi ...
bash
d_bash_11281
--- +++ @@ -17,9 +17,9 @@ # Use maven to build jdt ls extension cd ../../headless-services/jdt-ls-extension -if command -v xvfbrun ; then +if command -v xvfb-run ; then echo "Using xvfb to run in headless environment..." - xvfbrun ../mvnw clean integration-test + xvfb-run ../mvnw clean integration-test...
bash
d_bash_11282
--- +++ @@ -1,6 +1,6 @@ #! /usr/bin/env bash -URL="http://www.zettix.com/Graphics/timetunnel/timetunnel-4.22.tar.gz" +URL='http://www.zettix.com/Graphics/timetunnel/xscreensaver-4.22/hacks/images/' if test $# -ne 1 then printf "Usage: %s %s\n" "$0" "${HOME}/.local/share/icons/xscreensaver/timetunnel" >&2 @@...
bash
d_bash_11283
--- +++ @@ -17,7 +17,7 @@ setScipyTriggerVars() { SCIPY_BLDRVERSION_STD=0.13.3 - SCIPY_BLDRVERSION_EXP=0.16.1 + SCIPY_BLDRVERSION_EXP=0.17.1 computeVersion scipy if [[ `uname` =~ "CYGWIN" ]] && ! $NUMPY_WIN_USE_FORTRAN; then SCIPY_BUILDS=${SCIPY_BUILDS:-"NONE"}
bash
d_bash_11284
--- +++ @@ -3,7 +3,7 @@ mvn clean package java -jar target/gs-rest-service-0.1.0.jar & PID=$! -sleep 3 +sleep 10 curl -s http://localhost:8080/greeting > target/actual.json kill -9 $PID
bash
d_bash_11285
--- +++ @@ -18,16 +18,25 @@ DISTROS=( */ ) fi DISTROS=( "${DISTROS[@]%/}" ) +SUCCESS=0 for DISTRO in "${DISTROS[@]}"; do note "Processing $(basename $DISTRO)" docker build --force-rm=true --rm=true \ - -t "lstore/builder:$(basename $DISTRO)" "$DISTRO" || \ - STATUS="${STATUS}"$'\n'"F...
bash
d_bash_11286
--- +++ @@ -4,30 +4,4 @@ DIR=`dirname $0` cd $DIR -let "suc = 0" -let "fail = 0" -NUMTEST=89 - -for (( tno = 1 ; $tno <= $NUMTEST ; tno = $tno + 1 )); do - ./testCheck.sh $tno - if [ "$?" -eq "0" ]; then - echo "OK" - let "suc = $(($suc + 1))" - else - echo "FAIL" - let "fail = $(($fail + 1))" - ...
bash
d_bash_11287
--- +++ @@ -29,6 +29,6 @@ done < "$BUILDKITE_ENV_FILE" fi - eval docker run $ARGS $evars $FULL_TAG bash -c \"$COMMANDS\" + docker run $ARGS $evars eosio/producer:eos-ubuntu-18.04-7f7907879240c857f2a7952115157003f8281f32 bash -c \"$COMMANDS\" fi
bash
d_bash_11288
--- +++ @@ -21,3 +21,7 @@ tools/build-rst.sh doc/install-guide \ $GLOSSARY --tag ${tag} --target "draft/install-guide-${tag}" done + +# Debian uses index-debian, rename it. +mv publish-docs/draft/install-guide-debian/index-debian.html \ + publish-docs/draft/install-guide-debian/index.html
bash
d_bash_11289
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash set -e -version="20.10.13" +version="20.10.14" echo "https://download.docker.com/linux/static/stable/x86_64/docker-$version.tgz";
bash
d_bash_11290
--- +++ @@ -22,4 +22,10 @@ mkdir -p distribution/RealmIntroExample/realm cp -R distribution/realm distribution/RealmIntroExample +echo "Copying files to the distribution/RealmGridViewExample folder" +mkdir -p distribution/RealmGridViewExample/app/libs +cp realm-annotations-processor/build/libs/realm-annotations-p...
bash
d_bash_11291
--- +++ @@ -25,7 +25,7 @@ # Get input files cp DIR/$input DIR/pdb*AF*pdb . -/diva1/home/modeller/mod9v1 - ${SGE_TASK_ID} < $input >& $output +/diva1/home/modeller/mod9v2 - ${SGE_TASK_ID} < $input >& $output # Copy back PDB cp *.B* DIR
bash
d_bash_11292
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash # This is a simple replacement for puppet -LOCAL_MACHINES="cellabus personal" +LOCAL_MACHINES="personal" REMOTE_MACHINES=" statsonice.com albertyw.com
bash
d_bash_11293
--- +++ @@ -11,3 +11,11 @@ echo $d e=$(echo 'scale=4;6*3.1'|bc) echo $e +f=$(bc<<EOF +scale=4 +a1=2.34*4.66/1 +b1=4.5-2.44333 +a1+b1 +EOF +) +echo $f
bash
d_bash_11294
--- +++ @@ -7,6 +7,8 @@ # Run in a clean directory passing in a GitHub org and repo name org=$1 repo=$2 +branch=$3 +: ${branch:="master"} # make folder (same as input, no checking!) mkdir $repo @@ -21,7 +23,7 @@ # use bower to install runtime deployment bower cache clean $repo # ensure we're getting the la...
bash
d_bash_11295
--- +++ @@ -6,7 +6,7 @@ docker build --tag=letsmeet-prod . docker rm -f letsmeet letsmeet-nginx docker run -d --volumes-from letsmeet-data --link letsmeet-db:db -v `pwd`/letsmeet/letsmeet/settings/production.py:/opt/code/letsmeet/letsmeet/settings/production.py --restart=always --name letsmeet letsmeet-prod -docke...
bash
d_bash_11296
--- +++ @@ -3,4 +3,4 @@ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install fish caskroom/cask/brew-cask git python ruby scala sbt giter8 git-extras vim maven wget jq dos2unix p7zip unrar tree -brew cask install alfred iterm2 java spectacle sourcetree qlcolorcode...
bash
d_bash_11297
--- +++ @@ -12,3 +12,13 @@ function gitignore() { curl -L -s https://www.gitignore.io/api/"$@" > .gitignore; } + +function json() { + if [ -t 0 ]; then + # JSON as argument + python -mjson.tool <<< "$*" | pygmentize -l javascript; + else + # JSON from pipe + python -mjson.tool...
bash
d_bash_11298
--- +++ @@ -12,7 +12,7 @@ # Generated by scripts/gen-provider.sh provider "aws" { profile = "$AWS_PROFILE" - max_retries = 3 + max_retries = 10 region = "$AWS_REGION" EOF if [ ! -z $ALLOWED_ACCOUNT_IDS ]; then
bash
d_bash_11299
--- +++ @@ -28,11 +28,12 @@ # Build a fresh copy of the site (cleanup before) # -(cd ${DIRNAME}/../mkdocs/CV && mkdocs build --clean) +(cd ${DIRNAME}/../mkdocs && mkdocs build --clean) # Upload to S3 # -${DIRNAME}/CVtoS3.py +cd "${DIRNAME}" +${DIRNAME}/CVtoS3.py "${1}" # Exit from the virtual environment a...
bash