document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_12300
--- +++ @@ -10,8 +10,11 @@ CCACHE=`which ccache` GPP=`which g++` GCC=`which gcc` +DARWIN=`uname | grep Darwin` -if [ "$CCACHE" != "" -a "$GPP" != "" -a "$GCC" != "" ]; then +# CMake on mac doesn't play well with overriding the compiler so we +# explicitly disable it there. +if [ "$CCACHE" != "" -a "$GPP" != "" -...
bash
d_bash_12301
--- +++ @@ -7,7 +7,7 @@ state="unknown" function lock { - /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend + open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app } while true; do
bash
d_bash_12302
--- +++ @@ -2,7 +2,7 @@ case "$OCAML_VERSION,$OPAM_VERSION" in 4.00.1,1.1.0) ppa=avsm/ocaml40+opam11 ;; 4.01.0,1.1.0) ppa=avsm/ocaml41+opam11 ;; -4.02.0,1.1.0) ppa=avsm/ocaml42+opam11 ;; +4.02.1,1.1.0) ppa=avsm/ocaml42+opam11 ;; *) echo Unknown $OCAML_VERSION,$OPAM_VERSION; exit 1 ;; esac echo "yes" | sudo add-...
bash
d_bash_12303
--- +++ @@ -13,7 +13,7 @@ trap 'rm -f $tmp_file' EXIT ( -find $deps -type f -name "*.h" -o -name "*.moc" | xargs dirname +find $deps -type f -name "*.h" -o -name "*.moc" | xargs -n1 dirname find $deps -type d -name include ) | grep -Evw "arm|mkspecs|win" |
bash
d_bash_12304
--- +++ @@ -25,9 +25,4 @@ source "$(command -v git-prompt)" fi -# Enable direct hardware-accelerated OpenGL rendering in Cygwin/X -if command -v startxwin > /dev/null; then - export LIBGL_USE_WGL=1 -fi - # vim: syntax=sh cc=80 tw=79 ts=4 sw=4 sts=4 et sr
bash
d_bash_12305
--- +++ @@ -1,2 +1,2 @@ #!/bin/bash -for f in $( find . -name .gitignore ); do sed -re "s,^,find ${f%.gitignore} -name ',; s,$,' | xargs -r rm -f,;" $f; done | bash -v +for f in $( find . -name .gitignore ); do sed -re "s,^,find ${f%.gitignore} -name ',; s,$,' | xargs rm -f,;" $f; done | bash -v
bash
d_bash_12306
--- +++ @@ -1,4 +1,6 @@ #!/bin/sh -xe sudo apt-get update -q2 sudo apt-get -y install ant ant-optional libev-dev libyaml-dev python-dev python-setuptools wamerican -sudo pip install blist cassandra-driver ccm cql decorator futures nose-test-select pycassa +sudo pip install blist cassandra-driver cql decorator futu...
bash
d_bash_12307
--- +++ @@ -33,3 +33,7 @@ # TODO # Choose what information to display # Implement how the information is gathered and shown +# Check OS X compatibility +# sed '/^[[:space:]]*$/d' +# OR +# sed -i "" '/^[[:space:]]*$/d'
bash
d_bash_12308
--- +++ @@ -6,7 +6,7 @@ echo "https://github.com/bell-sw/Liberica/releases/download/8u333+2/bellsoft-jdk8u333+2-linux-amd64.tar.gz" ;; java11) - echo "https://github.com/bell-sw/Liberica/releases/download/11.0.15+10/bellsoft-jdk11.0.15+10-linux-amd64.tar.gz" + echo "https://github.com/bell-sw/Liberica/rel...
bash
d_bash_12309
--- +++ @@ -9,6 +9,6 @@ echo "Building client" make client echo "Configuring unikernel" -env FS=crunch mirage configure --xen --dhcp=true --no-argv +env FS=crunch mirage configure --xen --dhcp=true --no-argv --http_port=80 --https_port=443 echo "Building unikernel via final make" make
bash
d_bash_12310
--- +++ @@ -12,12 +12,14 @@ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" fi +# Install more current bash version +brew install bash + brew install git git-lfs # git lfs is "special" git lfs install -git lfs checkout || echo "Checkout failed, continuing anyway.....
bash
d_bash_12311
--- +++ @@ -15,7 +15,7 @@ # Look which addr we dhould match -ADDR=$(opsbro agent info| grep 'Local addr' | awk '{print $3}') +ADDR=$(opsbro agent info| grep 'Public addr' | awk '{print $3}') if [ "X$ADDR" == "X" ];then echo "ERROR: cannot look Address"
bash
d_bash_12312
--- +++ @@ -11,4 +11,4 @@ /tmp/google-cloud-sdk/install.sh --rc-path ~/.zshrc --path-update true --command-completion true --bash-completion true --install-python false -q echo "Installing gcloud components..." -yes | /Users/se7entyse7en/google-cloud-sdk/bin/gcloud components install core gsutil bq kubectl docker...
bash
d_bash_12313
--- +++ @@ -8,8 +8,7 @@ alias pmm2='python manage.py migrate' alias pm2='python manage.py' -alias pf='sudo pip freeze' -alias pfg='sudo pip freeze | grep -i' + function pe(){ # Evaluate a python expression @@ -24,3 +23,13 @@ } alias getpip='cd /tmp && wget https://bootstrap.pypa.io/get-pip.py && sudo ...
bash
d_bash_12314
--- +++ @@ -12,16 +12,23 @@ trap cleanup_xvfb EXIT +if ! which xdpyinfo >/dev/null 2>&1; then + echo "[ERROR] The \`xdpyinfo\` utility is required to run this script!." + exit 1 +fi + +if ! which Xvfb >/dev/null 2>&1; then + echo "[ERROR] The \`xdpyinfo\` utility is required to run this script!." + exit 1 +fi + ...
bash
d_bash_12315
--- +++ @@ -11,7 +11,7 @@ #========================================================================== #========================================================================== -# Copyright 2017 Mihai Gătejescu +# Copyright 2019 Mihai Gătejescu # # Licensed under the Apache License, Version 2.0 (the "License")...
bash
d_bash_12316
--- +++ @@ -1,21 +1,21 @@ #!/bin/bash -var1="a" -if test $var1 +#var1="a" +#if test $var1 +#then +#echo "Not null." +#else +#echo "Null." +#fi +a=3 +b=2 +if [ $a -gt $b ] then -echo "Not null." + echo "$a is great than $b" +elif [ $a -eq $b ] +then + echo "$a is equal to $b" else -echo "Null." -fi -a=1 -b=...
bash
d_bash_12317
--- +++ @@ -1,7 +1,7 @@ # Activates autoenv or reports its failure -if ! source $HOME/.autoenv/activate.sh 2>/dev/null; then +if ! type autoenv_init &>/dev/null && ! source $HOME/.autoenv/activate.sh 2>/dev/null; then echo '-------- AUTOENV ---------' - echo 'Could not find ~/.autoenv/activate.sh.' + echo 'Coul...
bash
d_bash_12318
--- +++ @@ -15,6 +15,8 @@ echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust --no-tty --batch --yes echo "Checkout master branch explicitly, as we run the release with a in detached head." +git config user.email "adobe-bot@example.com" +git config user.name "adobe-bot" git checkout -qf master; e...
bash
d_bash_12319
--- +++ @@ -3,6 +3,11 @@ SESSION="beavy" tmux -2 new-session -d -s $SESSION + +tmux set-option -t $SESSION mouse-select-pane on +tmux set-option -t $SESSION mouse-select-window on +tmux set-window-option -t $SESSION mode-mouse on + tmux new-window -t $SESSION:1 -n tmux split-window -v tmux select-pane -t 1
bash
d_bash_12320
--- +++ @@ -1,5 +1,7 @@ # Modify auth file to allow all from any host. This is okay with a # container that doesn't publish its ports. +#!/bin/bash +set -e { echo; echo 'host all all 0.0.0.0/0 trust'; } >> "$PGDATA"/pg_hba.conf
bash
d_bash_12321
--- +++ @@ -1,4 +1,4 @@ -useradd vagrant -m -d /home/vagrant +useradd vagrant -u 5000 -m -d /home/vagrant echo "Defaults !requiretty vagrant ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-vagrant
bash
d_bash_12322
--- +++ @@ -7,7 +7,7 @@ APB_RC=$? echo "$PB_OUT" echo "rc was $APB_RC (must be non-zero)" -[ $$APB_RC -ne 0 ] +[ ${APB_RC} -ne 0 ] echo "ensure playbook output shows assert/fail works (True)" echo "$PB_OUT" | grep -F "fail works (True)" || exit 1 echo "$PB_OUT" | grep -F "assert works (True)" || exit 1 @@ -17,7...
bash
d_bash_12323
--- +++ @@ -10,7 +10,8 @@ wget --directory-prefix=/tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb sudo dpkg -i /tmp/nvidia-docker_1.0.1-1_amd64.deb -sudo ln -s /var/lib/nvidia-docker/volumes/nvidia_driver/* /usr/local/lib/nvidia +sudo ln -s /usr/lib/nvidia-$NV...
bash
d_bash_12324
--- +++ @@ -11,6 +11,10 @@ # Rename files to lowercase rename 'y/A-Z/a-z/' ../data/* +# Eliminate the periods from a pair of filename +mv name.history.csv name_history.csv +mv reserved.name.csv reserved_name.csv + # Delete temporary artifacts rm /tmp/data.zip
bash
d_bash_12325
--- +++ @@ -22,9 +22,9 @@ fi -# Set limitations on system resources +# Set limitations on system resources (uncomment if you experience issues) # Increase open files limit -ulimit -n 1024 2> /dev/null +# ulimit -n 1024 2> /dev/null # Increase available processes limit -ulimit -u 1024 2> /dev/null +# ulimit -...
bash
d_bash_12326
--- +++ @@ -8,5 +8,5 @@ ./configure --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX --with-flint=$PREFIX make -make check +#make check make install
bash
d_bash_12327
--- +++ @@ -18,7 +18,7 @@ q=/tmp/maven_cache_warmup.q echo 'quark *; void main(List<String> args) {}' > $q quark install --online $q -quark run $q +quark run --java $q set -x
bash
d_bash_12328
--- +++ @@ -15,7 +15,7 @@ if docker ps | grep dd-test-postgres >/dev/null; then echo 'the containers already exist, we have to remove them' - bash postgres/ci/stop-docker.sh + bash postgres/test/ci/stop-docker.sh fi POSTGRES00_ID=$(docker run -p $PORT:5432 --name $NAME -v $CI_PATH/resources:/docker-entryp...
bash
d_bash_12329
--- +++ @@ -1,7 +1,12 @@ #!/bin/sh -e # highlight differences between common files in two given directories -diff --suppress-blank-empty \ - --suppress-common-lines \ - --ignore-all-space \ - $1 $2 | grep -v Only | grep -E '^[diff].+|$' --color +if [ $1 ] && [ $2 ]; then + diff --suppress-blank-e...
bash
d_bash_12330
--- +++ @@ -10,7 +10,6 @@ install_mas_app 1091189122 'Bear' install_mas_app 451640037 'Classic Color Meter' install_mas_app 407963104 'Pixelmator' -install_mas_app 422304217 'Day One Classic' install_mas_app 409203825 'Numbers' install_mas_app 409201541 'Pages' install_mas_app 409183694 'Keynote'
bash
d_bash_12331
--- +++ @@ -21,7 +21,7 @@ exit_status=$? # Delete the scratch org - cci org scratch_delete browsertest_master + cci org scratch_delete browsertests_master if [ "$exit_status" = "1" ]; then echo "Flow execution failed, failing test" exit 1 @@ -45,7 +45,7 @@ exit_status=$? ...
bash
d_bash_12332
--- +++ @@ -4,7 +4,7 @@ set -o pipefail DEPLOYMENT_NAME=$(cat cf-environments/name) -cf login -a "api.$DEPLOYMENT_NAME.$BOSH_LITE_DOMAIN_NAME" -u admin -p "$CF_PASSWORD" --skip-ssl-validation +cf login -a "api.$DEPLOYMENT_NAME.$BOSH_LITE_DOMAIN_NAME" -u admin -p "$CF_PASSWORD" -o integration -s integration --skip...
bash
d_bash_12333
--- +++ @@ -3,11 +3,12 @@ #Project dependencies file #Final authority on what's required to fully build the project -#byond version -#note, this also needs to be changed in the Dockerfile's initial FROM command -#If someone has an idea for how to set that version within the Dockerfile itself without any other dep...
bash
d_bash_12334
--- +++ @@ -9,6 +9,8 @@ alias ls='ls -h --color=auto' alias gr='cd $(git root)' alias less='less -S' # enable horizontal scrolling in less +alias s='ssh' + export EDITOR=vim alias subs='filebot -get-subtitles'
bash
d_bash_12335
--- +++ @@ -14,9 +14,10 @@ docker ps -a -q | xargs --no-run-if-empty docker rm -fv docker images | egrep 'zenoss/ubuntu[ ]+wget' || docker pull zenoss/ubuntu:wget go get github.com/tools/godep -cd $GOPATH/src/github.com/control-center/serviced/volume -sudo su root -c "source /home/jenkins/.gvm/scripts/gvm; gvm use...
bash
d_bash_12336
--- +++ @@ -10,11 +10,3 @@ bundle install --path "${HOME}/bundles/${JOB_NAME}" bundle exec ./deploy_vcl ${vhost} ${ENVIRONMENT} - -cd cdn-configs -git push -f git@github.gds:gds/cdn-configs.git HEAD:refs/heads/deployed-to-${ENVIRONMENT} - -cd .. - -cd govuk-cdn-config -git push -f git@github.com:alphagov/govuk-cd...
bash
d_bash_12337
--- +++ @@ -1,5 +1,5 @@ #!/usr/bin/env sh cd "$(dirname "$0")/../snipcart/languages" - +rm *.mo for file in `find . -name "*.po"` ; do msgfmt -o `echo $file | sed s/\.po/\.mo/` $file ; done
bash
d_bash_12338
--- +++ @@ -42,5 +42,9 @@ done fi echo "Everything Killed." +if [ -f nohup.out ] +then + rm nohup.out +fi ${SCRIPTDIR}/callRestUSB.sh
bash
d_bash_12339
--- +++ @@ -20,7 +20,7 @@ find . -maxdepth 6 -name Gruntfile.js | grep -v "node_modules" | while read GFILE; do pushd "${GFILE%/*}" >/dev/null - grunt build + grunt build --force popd >/dev/null done
bash
d_bash_12340
--- +++ @@ -3,7 +3,7 @@ source ~/scripts/website-env.sh declare -x PUBLIC=/home/${WEBSITE:?}/public/ -CACHE_CONTROL='max-age=43200, s-maxage=86400' +CACHE_CONTROL='max-age=86400' cd ~/website.git/
bash
d_bash_12341
--- +++ @@ -8,6 +8,8 @@ sudo apt-add-repository -y ppa:tista/adapta # Paper icon theme sudo apt-add-repository -y ppa:snwh/pulp +# Neovim editor +sudo add-apt-repository -y ppa:neovim-ppa/unstable # Atom editor sudo add-apt-repository -y ppa:webupd8team/atom # Google Chrome @@ -29,6 +31,7 @@ cmake python3...
bash
d_bash_12342
--- +++ @@ -9,5 +9,7 @@ # Swap in the userns remap config if [[ "${DOCKER_USERNS_REMAP:-false}" == "true" ]] ; then - cp /etc/sysconfig/docker.userns-remap /etc/sysconfig/docker + mv /etc/docker/daemon.userns-remap.json /etc/docker/daemon.json +else + rm /etc/docker/daemon.userns-remap.json fi
bash
d_bash_12343
--- +++ @@ -3,12 +3,15 @@ # last modified: 2017/03/05 # sudo: yes -if [ $(whoami) != 'root' ]; then - echo "Must be root to run $0" - exit 1; +if [ $(id -u) = 0 ]; then + echo "to be run with no sudo" + exit 1 fi START=$SECONDS + +sudo apt-get update +sudo apt-get upgrade # g...
bash
d_bash_12344
--- +++ @@ -2,23 +2,41 @@ set -e -rm -rf lib - BRANCH_NAME='latest' +set +e +git branch -D ${BRANCH_NAME} +set -e + +rm -rf lib +rm -rf node_modules + npm version patch +git branch ${BRANCH_NAME} git checkout ${BRANCH_NAME} -git merge master +npm install grunt build +rm -rf node_modules +npm install --pr...
bash
d_bash_12345
--- +++ @@ -13,12 +13,12 @@ mkdir -p logs/op function analyzeMonth() { - python2 getSparqlStatistic.py -m $1 $2 > logs/sp/sparqlStatistic$2.txt - python2 operatorUsageStatistic.py -m $1 $2 > logs/op/operatorUsageStatistic$2.txt - python2 generalStat.py -m $1 $2 > logs/generalStat$1$2.txt + python2 g...
bash
d_bash_12346
--- +++ @@ -12,7 +12,7 @@ echo "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_x64_linux_hotspot_16.0.2_7.tar.gz" ;; java17) - echo "https://github.com/AdoptOpenJDK/openjdk17-binaries/releases/download/jdk-2021-05-07-13-31/OpenJDK-jdk_x64_linux_hotspot_2021-05...
bash
d_bash_12347
--- +++ @@ -16,10 +16,10 @@ if [[ $# -ge 1 ]] && [[ "$1" == - ]]; then tempfile="$(mktemp emacs-stdin-$USER.XXXXXXX --tmpdir)" cat - > "$tempfile" - _emacsfun --eval "(progn (find-file \"$tempfile\") - (set-visited-file-name nil) - ...
bash
d_bash_12348
--- +++ @@ -9,10 +9,10 @@ CODE=0 -if [[ $(git log -n 1 --pretty='format:%s') == "Bot merge"* ]]; then - # The FIRST parent of bot merges is from the PR, the second is +if [[ $(git log -n 1 --pretty='format:%s') == "[CI merge]"* ]]; then + # The second parent of bot merges is from the PR, the first is ...
bash
d_bash_12349
--- +++ @@ -2,3 +2,4 @@ dot -Tpng -o sample.png sample.dot dot -Tpdf -o sample.pdf sample.dot +dot -Tsvg -o sample.svg sample.dot
bash
d_bash_12350
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash NEW_PORT=$1 -OLD_PORTS=`iptables -t nat -S | grep "\-A PREROUTING" | sed -r 's/^.+ --to-ports ([0-9]+)$/\1/'` +OLD_PORTS=`iptables -t nat -S | grep "\-A OUTPUT" | sed -r 's/^.+ --to-destination :([0-9]+)$/\1/'` # Add new port to preroute if [ -n "${NEW_PORT}" ]; then
bash
d_bash_12351
--- +++ @@ -5,6 +5,8 @@ echo -e '\nBEGIN INSTALL PUSH JOBS ADDON\n' sudo chef-server-ctl install opscode-push-jobs-server +sudo mkdir -p /etc/opscode-push-jobs-server +printf -- "opscode_pushy_server['heartbeat_interval'] = 1000" | sudo tee /etc/opscode-push-jobs-server/opscode-push-jobs-server.rb sudo chef-serv...
bash
d_bash_12352
--- +++ @@ -1,4 +1,8 @@ #!/bin/sh + +rm home/pi/hack-clock/run_clock.py +rm home/pi/hack-clock/blocks_clock.xml +rm home/pi/hack-clock/backups/* cd .. echo "Compressing file..."
bash
d_bash_12353
--- +++ @@ -23,11 +23,13 @@ tests=`cat test/basic_tests.txt`; fi +LOG_CMD="| tee" + for f in $tests do base=`basename $f .c` echo $f 1>&2 - ( ./zl test/$f > test/$base.log && compile_test $base ) \ + ( ./zl test/$f $LOG_CMD test/$base.log && compile_test $base ) \ || failed $f done
bash
d_bash_12354
--- +++ @@ -6,7 +6,7 @@ set -o nounset set -o errexit -DOTFILES=( gemrc gitconfig gvimrc inputrc irbrc pryrc screenrc vimrc wgetrc zshrc ) +DOTFILES=( gemrc gitconfig gvimrc inputrc irbrc pryrc screenrc tmux.conf vimrc wgetrc zshrc ) SSH_CONFIG=ssh_config abort() {
bash
d_bash_12355
--- +++ @@ -31,5 +31,5 @@ chown xilinx:xilinx /home/xilinx/REVISION chown xilinx:xilinx -R /home/xilinx/pynq chown xilinx:xilinx -R /home/xilinx/jupyter_notebooks - +chown xilinx:xilinx -R $(readlink -f /home/xilinx/pynq) systemctl enable pl_server
bash
d_bash_12356
--- +++ @@ -3,7 +3,7 @@ source setup/teardown_shared.sh -echo "Uninstalling cocoapods" +echo "Uninstalling cocoapods version $COCOAPODS_VERSION" gem uninstall cocoapods -v $COCOAPODS_VERSION echo "Removing all modules, plugins and platforms to make a fresh start"
bash
d_bash_12357
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -e -cd $(dirname $0)/../.. +cd $(dirname $0) USER="root" HOST="172.10.1.100"
bash
d_bash_12358
--- +++ @@ -19,12 +19,16 @@ # Targets . test/targets/test_init.sh . test/targets/test_standard.sh +echo +assert_end Targets # C Tests . test/c/test_single-file.sh . test/c/test_multiple-file.sh . test/c/test_static-lib.sh . test/c/test_shared-lib.sh +echo +assert_end "C Tests" # C++ Tests . test/c++/tes...
bash
d_bash_12359
--- +++ @@ -34,6 +34,15 @@ echo BIRD configuration generated at $BIRD_CONF -# Restart BIRD. -service bird restart -echo BIRD restarted +if [ -f /etc/redhat-release ]; then + # On a Red Hat system, we assume that BIRD is locally built and + # installed, as it is not available for RHEL 6.5 in packaged form. ...
bash
d_bash_12360
--- +++ @@ -9,9 +9,15 @@ javaDir="src/main/java" resourceDir="src/main/resources" pkgDir="com/googlecode/jslint4java" +jslint="fulljslint.js" -$dir/fetch-jslint.sh $resourceDir $pkgDir -$dir/extract-options.rb $resourceDir/$pkgDir/fulljslint.js $javaDir/$pkgDir/Option.java > tmp.java +# Specify an explicit jslin...
bash
d_bash_12361
--- +++ @@ -5,6 +5,7 @@ --exclude=desktop \ --exclude=displays.xml \ --exclude=parole.xml \ + --exclude=ristretto.xml \ --exclude=xfce4-screenshooter \ $HOME/.config/xfce4/* \ config/xfce4
bash
d_bash_12362
--- +++ @@ -2,7 +2,7 @@ set -ex wget http://www.antlr3.org/download/C/libantlr3c-3.4.tar.gz -O libantlr3.tar.gz tar -zxvf libantlr3.tar.gz -cd libantlr3c-3.4 && ./configure --prefix=/usr && make && sudo make install +cd libantlr3c-3.4 && ./configure --prefix=/usr --enable-64bit && make && sudo make install cd .. ...
bash
d_bash_12363
--- +++ @@ -23,7 +23,7 @@ echo -e "\n Starting Zammad... \n" su -c "bundle exec script/websocket-server.rb -b 0.0.0.0 start &" zammad - su -c "bundle exec script/scheduler.rb start &" zammad + su -c "bundle exec script/background-worker.rb start &" zammad # show url echo -e "\nZammad will be ready i...
bash
d_bash_12364
--- +++ @@ -15,9 +15,6 @@ # cd to the ec directory. cd "$(dirname "$(realpath -e "${BASH_SOURCE[0]}")")"/.. -# Run pytest -pytest util "$@" - # Run shell tests cd util ./test-inject-keys.sh
bash
d_bash_12365
--- +++ @@ -1,5 +1,11 @@ #!/bin/bash set -e + +PROJECT_PATH=$BITRISE_PROJECT_PATH + +if [ ! -z "${project_path}" ] ; then + PROJECT_PATH="${project_path}" +fi if [ ! -z "${workdir}" ] ; then echo "==> Switching to working directory: ${workdir}" @@ -10,4 +16,4 @@ fi fi -set -o pipefail && xcodebuild -proje...
bash
d_bash_12366
--- +++ @@ -23,7 +23,9 @@ # Move into the powergraph repo directory. cd graphlab -# Replace CMakeLists.txt with our CMakeLists.txt to replace broken URIs. +# Patch the Powergraph CMakeLists.txt to change dependency lines containing broken URIs. +# Replace the hash in the patch name with any newer version for whic...
bash
d_bash_12367
--- +++ @@ -14,7 +14,7 @@ # Location # export APP_PATH="/home/toni/code/compass/LuciusAPI" -export APP_PATH="$LUCIUSAPIPATH" +export APP_PATH="$LUCIUSAPI_APP_PATH" # The config file to be used for initialization, default is docker export INIT_CONF="initialize-local.conf"
bash
d_bash_12368
--- +++ @@ -16,7 +16,7 @@ gem install librarian-puppet -./install/modules-for-vagrant.sh +#./install/modules-for-vagrant.sh # ensure that our module is in the right place if [ ! -d modules/alfresco ]
bash
d_bash_12369
--- +++ @@ -10,7 +10,7 @@ # * does not come from a pull request # * is made to the `master` branch -if [ "$TRAVIS_PULL_REQUEST" = "true" ] || +if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ "$TRAVIS_BRANCH" != "master" ]; then exit 0 fi
bash
d_bash_12370
--- +++ @@ -15,7 +15,7 @@ adb_shell () { local RET ADB_LOG ADB_LOG=$(mktemp "${TMPDIR:-/tmp}/adb-XXXXXXXX") - adb shell "$@" ";" echo \$? | tee "$ADB_LOG" + adb "$1" shell "$@" ";" echo \$? | tee "$ADB_LOG" sed -i -e 's![[:cntrl:]]!!g' "$ADB_LOG" # Remove \r. RET=$(sed -e '$!d' "$ADB_LOG") #...
bash
d_bash_12371
--- +++ @@ -21,7 +21,14 @@ alias md='mkdir -p' alias rd=rmdir -alias d='dirs -v | head -10' +function d () { + if [[ -n $1 ]]; then + dirs "$@" + else + dirs -v | head -10 + fi +} +compdef _dirs d # List directory contents alias lsa='ls -lah'
bash
d_bash_12372
--- +++ @@ -7,6 +7,9 @@ exit 0 fi +# I put this in because Carl's install got wedged once because it couldn't acquire the repository lock +sudo apt-get update + sudo apt-get install -y libssl-dev libffi-dev sudo easy_install pip sudo pip install ansible
bash
d_bash_12373
--- +++ @@ -3,3 +3,7 @@ # ------------------------------------------------------------------------------ export LESS="--tabs=4 -RFX" + +export FZF_DEFAULT_COMMAND="rg --files" + +
bash
d_bash_12374
--- +++ @@ -3,7 +3,7 @@ set i = 0 -for folder in /opt/homebrew-cask/Caskroom/* +for folder in /usr/local/Caskroom/* do for version in $folder/* do
bash
d_bash_12375
--- +++ @@ -11,6 +11,16 @@ # SSL CAcerts anymore ln -sf /usr/local/share/certs/ca-root-nss.crt /etc/ssl/cert.pem; +# Avoid pausing at the boot screen +cat >>/etc/loader.conf << LOADER_CONF +autoboot_delay="-1" +beastie_disable="YES" +kern.hz=50 +LOADER_CONF + +# disable crash dumps +sysrc dumpdev="NO" + # As sha...
bash
d_bash_12376
--- +++ @@ -24,7 +24,13 @@ if diff output expected > diff; then return 0 else - fail "output is not as expected" + echo "fail - output is not as expected" + echo "--expected-----------" + cat expected + echo "--output-------------" + cat output + echo "---------------------" + exit 1 fi }
bash
d_bash_12377
--- +++ @@ -20,7 +20,7 @@ export PYTHONPATH=$PYTHONPATH:$APP_DIR export DJANGO_SETTINGS_MODULE='fvserver.settings' -if [ "$DOCKER_CRYPT_DEBUG" = "true" ] || [ "$DOCKER_CRYPT_DEBUG" = "True" ] || [ "$DOCKER_CRYPT_DEBUG" = "TRUE" ] ; then +if [ "${DOCKER_CRYPT_DEBUG}" = "true" ] || [ "${DOCKER_CRYPT_DEBUG}" = "True...
bash
d_bash_12378
--- +++ @@ -9,4 +9,4 @@ export SAVEHIST=10000 export HISTIGNORE="gst:be *:g *:gv(| *):cd(| *):(ls|dir)(| *):(rm|mv|cp|ln|scp|rmdir|mkdir) *:man *:(which|whence|type)(| *):pwd:.:..:..." -export EDITOR=gvim +export EDITOR=vim
bash
d_bash_12379
--- +++ @@ -3,9 +3,13 @@ AppServerVersion(){ returnAppServerVersion(){ - local appServer=${1} + if [[ $# == 0 ]]; then + return + else + local appServer=${1} - AppServerVersionConstants ${appServer}Version + AppServerVersionConstants ${appServer}Version + fi } $@
bash
d_bash_12380
--- +++ @@ -1,7 +1,7 @@ #!/usr/bin/env bash apt-get update -apt-get install -y curl git gcc libsndfile1-dev ffmpeg imagemagick +apt-get install -y curl git gcc libsndfile1-dev ffmpeg imagemagick libmagickwand-dev # first try git clone cd /opt
bash
d_bash_12381
--- +++ @@ -6,4 +6,8 @@ export HISTFILESIZE="${HISTSIZE}" # Save each command in bash history right after it has been executed. -PROMPT_COMMAND='history -a' +# Append the PROMPT_COMMAND variable (e.g. "; $PROMPT_COMMAND") after modifying +# PROMPT_COMMAND to avoid breaking PROMPT_COMMAND. Without doing this, new ...
bash
d_bash_12382
--- +++ @@ -4,6 +4,9 @@ DIRS=( keys certs logs) _V=0 TAIL_LOGS=0 + +# Clean up when exiting +trap 'echo 'Cleaning up;kill $(jobs -p)' EXIT usage() { cat <<EOF
bash
d_bash_12383
--- +++ @@ -11,7 +11,7 @@ local LOCK_FILE="$(dirname $COMPOSE_FILE)/.lock" if [[ ! -f "$LOCK_FILE" ]]; then - echo "Create lockfile $LOCK_FILE" + echo "Creating lockfile $LOCK_FILE" touch "$LOCK_FILE" # Figure out the default project network name @@ -24,12 +24,14 @@ # TODO: figure out h...
bash
d_bash_12384
--- +++ @@ -1,9 +1,9 @@ #!/bin/sh list=" +core/CodeIgniter.php +core/Common.php +core/Input.php core/Loader.php -core/Input.php -core/Common.php -core/CodeIgniter.php libraries/Upload.php "
bash
d_bash_12385
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -ev -if [ "${TRAVIS_NODE_VERSION}" = "6" ] ; then +if [ "${TRAVIS_NODE_VERSION}" = "8" ] ; then artifacts upload \ --bucket melonjs-builds \ --s3-region us-east-1 \
bash
d_bash_12386
--- +++ @@ -1 +1,2 @@ -python 2to3/run.py src/ plugins/ test/ scripts/* setup.py -wn -f all -f def_iteritems -f def_itervalues -f def_iterkeys -f reload "$@" +python 2to3/run.py src/ plugins/ test/ scripts/* setup.py -wWno py3k -f all -f def_iteritems -f def_itervalues -f def_iterkeys -f reload "$@" +cp locale/ py3k ...
bash
d_bash_12387
--- +++ @@ -16,7 +16,7 @@ for REPO in $URLS; do NAME=${REPO##*/} RSYNC_URL=${REPO/http:\/\/mirror.fuel-infra.org/rsync:\/\/mirror.fuel-infra.org\/mirror} - rsync -vvrczIP --chmod=Dugo+x "${LINK_DEST}" "${RSYNC_URL}/" "${NAME}" + rsync -vvrczIP --chmod=Dugo+x "${LINK_DEST}" "${RSYNC_URL}/" "${NAME}" |...
bash
d_bash_12388
--- +++ @@ -1,12 +1,21 @@ mkdir build cd build -cmake ${SRC_DIR} ${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release +cmake ${SRC_DIR} \ + ${CMAKE_ARGS} \ + -DCMAKE_BUILD_TYPE=Release make install cd ../ mkdir build-pybind cd build-pybind -cmake ${SRC_DIR} ${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Release -DPYBIND=Yes -DUS...
bash
d_bash_12389
--- +++ @@ -2,12 +2,12 @@ set -e -if [ ! -e node_modules/.bin/istanbul ]; then +if ! which istanbul > /dev/null; then cat << EOF 1>&2 Istanbul is required to run coverage. Install Istanbul: - npm install istanbul + npm install -g istanbul EOF exit 1 @@ -17,12 +17,12 @@ count=1; for fi...
bash
d_bash_12390
--- +++ @@ -3,7 +3,7 @@ HOME=/vagrant/user_level_slurm_reservations LOGFILE=/var/log/slurm-llnl/hil_monitor.log -source $HOME/../ve/bin/activate +source $HOME/ve/bin/activate export PYTHONPATH=$HOME/prolog:$PYTHONPATH # python $HOME/commands/hil_slurm_monitor.py 2>&1 >> $LOGFILE python $HOME/commands/hil_slurm...
bash
d_bash_12391
--- +++ @@ -6,7 +6,7 @@ ../../bin/qcert -emit-all -dir test01_nnrc/irs -log-optims-dnrc names -schema test01.schema -source camp -target spark_df -dir-target test01_nnrc/src/main/scala test01.camp pushd test01_nnrc sbt assembly -spark-submit --class R01 target/scala-2.11/test01_nnrc-assembly-0.1-SNAPSHOT.jar ../te...
bash
d_bash_12392
--- +++ @@ -4,8 +4,8 @@ echo "Trying to find limit for processes:" if ulimit -u; then - echo "Fixing limit to 31100" - ulimit -u 31100 + echo "Fixing limit to 14100" + ulimit -u 14100 elif [ "$RETRYEXEC" ]; then echo "Already tried to re-exec script, giving up." exit 1
bash
d_bash_12393
--- +++ @@ -43,7 +43,7 @@ pip install --no-download -r requirements.txt > /dev/null 2>&1 if [ $? -ne 0 ]; then # Install dependencies - pip install -r requirements.txt + pip install -r requirements.txt --upgrade if [ $? -ne 0 ]; then cat <<EOF Unable to install the required dependencies. Please see er...
bash
d_bash_12394
--- +++ @@ -1,2 +1,3 @@ #!/bin/sh +# cd /Users/jmartin/Applications/aviary # Uncomment this line, if you want to use in a cron script ruby -rubygems aviary.rb "$@"
bash
d_bash_12395
--- +++ @@ -5,6 +5,22 @@ cd pyopcode mkdir build cd build + +if [ `uname` == Linux ]; then + # FIXME refactor to reuse the python name (e.g. python3.5m) + # FIXME detect any kind of suffix (m, or d) + include_path=${PREFIX}/include/python${PY_VER} + if [ ! -d $include_path ]; then + # Control will...
bash
d_bash_12396
--- +++ @@ -2,15 +2,15 @@ if [ "$(ls -A $INSPECTIT_CONFIG_HOME)" ]; then echo "Using existing inspectIT configuration..." else - echo "No custom inspectIT configuration found, using default one..." - cp -r $INSPECTIT_CONFIG_HOME/../config/* $INSPECTIT_CONFIG_HOME - CMR_ADDR=${INSPECTIT_CMR_ADDR:-$CMR_PORT_9070_TC...
bash
d_bash_12397
--- +++ @@ -31,4 +31,4 @@ export LANG='en_US.UTF-8' # change history file for MySQL -MYSQL_HISTFILE=$HOME/.history/mysql +export MYSQL_HISTFILE=$HOME/.history/mysql
bash
d_bash_12398
--- +++ @@ -15,7 +15,7 @@ docker images | egrep 'zenoss/ubuntu[ ]+wget' || docker pull zenoss/ubuntu:wget go get github.com/tools/godep cd $GOPATH/src/github.com/control-center/serviced/volume -sudo su root -c "source /home/jenkins/.gvm/scripts/gvm; gvm use go1.4.2; GOPATH=$GOPATH godep go test -tags=root ./..." +...
bash
d_bash_12399
--- +++ @@ -2,6 +2,10 @@ VERSION=0.11 -wget https://raw.githubusercontent.com/mozilla/firefox-executive-dashboard/master/data/reformat_v4.py +if [ ! -s reformat_v4.py ]; then + echo "Missing: reformat_v4.py" + echo "Go get it from https://github.com/mozilla/firefox-executive-dashboard/blob/master/data/refo...
bash