document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_6400 | ---
+++
@@ -5,10 +5,13 @@
RELEASE_DIR=${BUILD_DIR}/release
EXEC_NAME=OZMTool
+GIT=git
QMAKE=qmake
MAKE=make
CONFIG_OPTION=release
OS_ID=osx
+
+VERSION=`${GIT} describe`
if [ `basename ${BASE_DIR}` != "OZMTool" ]
then
@@ -30,6 +33,6 @@
echo "Packing it up..."
cd ${RELEASE_DIR}
-zip -r ${BASE_DIR}/${EXE... | bash |
d_bash_6401 | ---
+++
@@ -7,9 +7,29 @@
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
CMAKE_OS="Darwin"
PIP_EXTRA_ARGS="--user"
+
+ install_cmake () {
+ local prefix="/usr/local/bin"
+ echo "Removing any existing CMake in $prefix"
+ sudo rm -f \
+ "$prefix/cmake" \
+ "$prefix/cpack" \
+ "$prefix/cmake-gu... | bash |
d_bash_6402 | ---
+++
@@ -2,8 +2,11 @@
while true; do
- BUILD_STATUS=`curl --header "Accept: application/json" https://circleci.com/api/v1/project/mnaza/objcthemis-tests/$1?circle-token==$OBJCTHEMIS_TEST_TOKEN | python -c 'import sys; import json; print(json.load(sys.stdin)["status"])'`
-
+ BUILD_STATUS=`curl --header "... | bash |
d_bash_6403 | ---
+++
@@ -3,3 +3,21 @@
npm install
npm test
+
+# Create a new tag if the version file has been updated and a tag for that
+# version doesn't already exist
+
+# Are we on master branch, we shouldn't push tags for version bump branches
+MASTER_SHA=`git rev-parse origin/master`
+HEAD_SHA=`git rev-parse HEAD`
+if [... | bash |
d_bash_6404 | ---
+++
@@ -9,7 +9,7 @@
function create_osm_db() {
echo "Creating database $OSM_DB with owner $OSM_USER"
- PGUSER="$POSTGRES_USER" psql --dbname="$POSTGRES_DB" <<-'EOSQL'
+ PGUSER="$POSTGRES_USER" psql --dbname="$POSTGRES_DB" <<-EOSQL
CREATE USER $OSM_DB WITH PASSWORD '$OSM_PASSWORD';
CREATE DATAB... | bash |
d_bash_6405 | ---
+++
@@ -14,11 +14,11 @@
#echo $OutputX
done
OutputX=$OutputX,$countother
-if [ ! -f /scripts/tdb/progress_out.txt ]
+if [ ! -f scripts/tdb/progress_out.txt ]
then
- echo "date,doesNotExist,expected,exists,manifest,doNotProcess,testing,notReady,ready,released,down,superseded,other" > ./scripts/tdb/progress_... | bash |
d_bash_6406 | ---
+++
@@ -1,7 +1,7 @@
# script ran periodically by Heroku to update the plugin index file
echo "Cloning..."
-git config --global user.name "Bruno Oliveira"
-git config --global user.email nicoddemus@gmail.com
+git config --global user.name "pytestbot"
+git config --global user.email pytestbot@gmail.com
git clone... | bash |
d_bash_6407 | ---
+++
@@ -28,19 +28,19 @@
riak-admin test
+echo "ready" > $CLUSTER_STATUS
+sleep 10
+
for s in $POSTSTART; do
. $s
done
-
-riak ping
-
-echo "ready" > $CLUSTER_STATUS
tail -n 1024 -f /var/log/riak/console.log &
TAIL_PID=$!
function graceful_death {
echo "dying" > $CLUSTER_STATUS
+ sleep 10
... | bash |
d_bash_6408 | ---
+++
@@ -3,7 +3,7 @@
# Licensed under the Apache License, Version 2.0 (the "License");
. $(dirname $0)/../common.sh
set -x
-rm -rf $CORPUS
+rm -rf $CORPUS fuzz-*.log
mkdir -p $CORPUS
[ -e $EXECUTABLE_NAME_BASE ] && ./$EXECUTABLE_NAME_BASE -artifact_prefix=$CORPUS/ -jobs=$JOBS -workers=$JOBS $CORPUS seeds | bash |
d_bash_6409 | ---
+++
@@ -3,11 +3,11 @@
# refetching the file for the first phase.
# Build site and run smoke tests
+echo $commit > $root/$commit/nodatime/src/NodaTime.Web/wwwroot/commit.txt
+
(cd $root/$commit/nodatime/build; ./buildweb.sh ../../nodatime.org)
echo "Build and test successful. Pushing."
-
-echo $commit > $r... | bash |
d_bash_6410 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
# This is useful because it prints out all of the source files. Useful for
# greps.
-find . -name \*.\[chyl\]\* | grep -v Lexer.cpp | grep -v llvmAsmParser.cpp | grep -v llvmAsmParser.h | grep -v '~$' | grep -v '\.ll$' | grep -v test | grep -v .flc | grep -v Sparc.burm.c
+find . ... | bash |
d_bash_6411 | ---
+++
@@ -6,13 +6,20 @@
tries=0
while [ $tries -lt 60 ]
do
- if wget http://localhost:8111 2>&1 | grep Location | grep -q /login ; then
+ status_code=$(wget --spider -S "http://localhost:8111/health" 2>&1 | grep "HTTP/" | awk '{print $2}')
+ if [ "${status_code}" == "200" ] ; then
echo "Server ... | bash |
d_bash_6412 | ---
+++
@@ -7,6 +7,7 @@
apt-get update
apt-get install -y --no-install-recommends \
git \
+ g++ \
gcc \
mime-support \
libpcre3-dev \ | bash |
d_bash_6413 | ---
+++
@@ -8,10 +8,20 @@
source_log="$1"
+if [ -f "$conf_dir/stats-gen.lock" ]; then
+ echo "!!! Stats generation is already in progress !!!"
+ echo "### If you're sure that's not the case, delete the stats-gen.lock file"
+ exit
+fi
+
+touch "$conf_dir/stats-gen.lock"
+
echo "### Splitting single .wee... | bash |
d_bash_6414 | ---
+++
@@ -6,7 +6,6 @@
if [ ! -f Gemfile ]; then
echo "source 'https://rubygems.org'" >> Gemfile
echo "gem 'openc_bot', :git => 'https://github.com/openc/openc_bot.git'" >> Gemfile
- echo "gem 'trollop'" >> Gemfile
echo "gem 'mechanize'" >> Gemfile
fi
echo "/db" >> .gitignore | bash |
d_bash_6415 | ---
+++
@@ -23,3 +23,5 @@
alias gsd='git stash show -p'
alias gss='git stash save'
alias gpo='git pull origin'
+alias gpull='git branch | grep "*" | sed "s/* //" | xargs git pull origin '
+alias gpush='git branch | grep "*" | sed "s/* //" | xargs git push origin ' | bash |
d_bash_6416 | ---
+++
@@ -1,3 +1,5 @@
#!/bin/sh
+git config user.email cibot@lenskit.org
+git config user.name "LensKit CI"
./gradlew ciPublish --stacktrace | bash |
d_bash_6417 | ---
+++
@@ -6,7 +6,7 @@
# License conformance
travis_fold_open "License conformance" "Validating source files for license compliance…"
-./ci/validate_license_conformance.sh {Sources/*{h,m},include/*/*.h,Tests/*.{h,m},Viewer/*.{h,m}}
+./ci/validate_license_conformance.sh {*/*.{c,h,m},*/**/*.{h,m}}
travis_fold_clo... | bash |
d_bash_6418 | ---
+++
@@ -13,6 +13,7 @@
rm -f ~/.vimrc
rm -f ~/.bashrc
rm -f ~/.gitconfig
+rm -f ~/.gitignore
rm -f ~/.zlogin
rm -f ~/.tmux.conf
| bash |
d_bash_6419 | ---
+++
@@ -1,5 +1,9 @@
# git bash completion
-if [ -f ~/.git-completion.bash ]; then
+
+if [ -f /etc/bash_completion.d/git ]; then
+ . /etc/bash_completion.d/git
+ __git_complete gch _git_checkout
+elif [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
__git_complete gch _git_checkout
f... | bash |
d_bash_6420 | ---
+++
@@ -9,7 +9,7 @@
source travis/terryfy/library_installers.sh
clean_builds
- get_python_environment macpython $PYTHON_VERSION venv
+ get_python_environment macpports $PYTHON_VERSION venv
fi
python setup.py install | bash |
d_bash_6421 | ---
+++
@@ -4,19 +4,26 @@
# pip install twine
# Environment:
-source activate sklearn-porter
+name=sklearn-porter
+anaconda_env=sklearn-porter
+source activate $anaconda_env
+
+# Version:
+version=`python -c "from sklearn_porter.Porter import Porter; print(Porter.__version__);"`
# Target (e.g.: pypitest, pypi)... | bash |
d_bash_6422 | ---
+++
@@ -3,21 +3,6 @@
. ci/get-nprocessors.sh
-# if possible, ask for the precise number of processors,
-# otherwise take 2 processors as reasonable default; see
-# https://docs.travis-ci.com/user/speeding-up-the-build/#Makefile-optimization
-if [ -x /usr/bin/getconf ]; then
- NPROCESSORS=$(/usr/bin/getcon... | bash |
d_bash_6423 | ---
+++
@@ -6,6 +6,6 @@
cd $build_root
# -- C --
-./c/build_all/linux/build.sh --run_valgrind "$@" #-x
+./c/build_all/linux/build.sh --use-websockets --run_valgrind "$@" #-x
[ $? -eq 0 ] || exit $?
| bash |
d_bash_6424 | ---
+++
@@ -8,4 +8,5 @@
alias mc='mc -s'
alias ooffice='libreoffice'
alias psg='ps aux | grep'
+alias tree='tree -d'
alias xv='geeqie' | bash |
d_bash_6425 | ---
+++
@@ -5,6 +5,7 @@
alias onoz='cat /var/log/errors.log'
alias rtfm='man'
+alias :3='echo'
alias visible='echo'
alias invisible='cat'
alias moar='more' | bash |
d_bash_6426 | ---
+++
@@ -8,6 +8,7 @@
alias errcho='>&2 echo'
npm_needs_sudo=''
+needs_python_env='false'
echo "# Installing slap..."
@@ -27,6 +28,7 @@
emerge nodejs git
elif is_executable pacman; then
pacman -S nodejs npm git
+ needs_python_env='true'
else
errcho "Couldn't determine OS. Please ins... | bash |
d_bash_6427 | ---
+++
@@ -1,7 +1,8 @@
if test -z "$SINGULARITY_INIT"; then
PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- PS1="Singularity.$SINGULARITY_CONTAINER> "
+ PS1="Singularity $SINGULARITY_CONTAINER> "
+ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/lib64"
SING... | bash |
d_bash_6428 | ---
+++
@@ -2,6 +2,8 @@
# Build the Windows cross and native toolchains for x86 and x86_64
WIPE=$1
+CURDIR=`pwd`
+set -e
for a in "w64" "w32"
do
@@ -12,5 +14,21 @@
./cerbero-uninstalled -c config/mingw-$a-$p.cbc wipe --force
fi
./cerbero-uninstalled -c config/mingw-$a-$p.cbc build toolcha... | bash |
d_bash_6429 | ---
+++
@@ -2,7 +2,7 @@
~/.my_bin/epi3lock -i ~/wallpaper/lock2.png &
pid=$!
-~/Config/bin/scripts/dead_clock.sh &
+$CONFIG_GIT_DIR/bin/scripts/dead_clock.sh &
pidbis=$!
wait $pid
read | bash |
d_bash_6430 | ---
+++
@@ -1,5 +1,6 @@
#! /bin/bash
-wget -qO- https://github.com/lolilolicon/xrectsel/archive/0.3.2.tar.gz | tar xvz -C ./lib
-cd ./lib/xrectsel-0.3.2 && ./bootstrap && ./configure && make && sudo make install
+tempdir=$(mktemp -d)
+wget -qO- https://github.com/lolilolicon/xrectsel/archive/0.3.2.tar.gz | tar xvz -... | bash |
d_bash_6431 | ---
+++
@@ -9,6 +9,6 @@
do
fin=$DIR/$file
fout=$DIR/$file.zip
- shasum -a 256 $fin
zip -9 -q -j $fout $fin
+ shasum -a 256 $fout
done | bash |
d_bash_6432 | ---
+++
@@ -4,7 +4,6 @@
./configure --prefix=$PREFIX \
--with-quartz \
--disable-debug \
- --disable-dependency-tracking \
--disable-java \
--disable-php \
--disable-perl \ | bash |
d_bash_6433 | ---
+++
@@ -1,4 +1,12 @@
#!/bin/bash
+
+if id -g "liquid" >/dev/null 2>&1; then
+ echo "liquid group exists, skipping create"
+else
+ echo "liquid group does not exist, creating one"
+ groupadd liquid
+fi
+
if id "liquid" >/dev/null 2>&1; then
echo "liquid user exists, skipping create"... | bash |
d_bash_6434 | ---
+++
@@ -8,7 +8,7 @@
git rm -r commons
cp -r ../build/docs/javadoc commons
git add -A
- git commit -m "Update to $TRAVIS_COMMIT (Build $TRAVIS_BUILD_NUMBER)"
+ git commit -m "Update to $TRAVIS_REPO_SLUG@$TRAVIS_COMMIT (Build $TRAVIS_BUILD_NUMBER)"
git push origin g... | bash |
d_bash_6435 | ---
+++
@@ -14,4 +14,4 @@
echo "Version: $VERSION"
echo "Release: $RELEASE"
-sed -e "s/SRPM :=.*/SRPM := $1/" -e "s/^PKGNAME :=.*/PKGNAME := $PKGNAME/" -e "s/^VERSION :=.*/VERSION := $VERSION/" -e "s/^RELEASE :=.*/RELEASE := $RELEASE/" Makefile.tmpl > Makefile
+sed -e "s;SRPM :=.*;SRPM := $1;" -e "s;^PKGNAME :=.... | bash |
d_bash_6436 | ---
+++
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
set -eu
THIS=$( dirname $0 ) | bash |
d_bash_6437 | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
-test/create_working_copy.sh
+set -e
+./test/create_working_copy.sh
cd test/working_copy/
grunt --quiet
grunt drush:liteinstall --quiet | bash |
d_bash_6438 | ---
+++
@@ -7,7 +7,7 @@
git clone https://github.com/opensprinkler/opensprinklergen2 unified
fi
cd unified
- ./build.sh -s demo
+ g++ -o OpenSprinkler -m32 main.cpp OpenSprinkler.cpp program.cpp server.cpp utils.cpp weather.cpp gpio.cpp etherport.cpp
./OpenSprinkler >/dev/null 2>&1 &
echo $! > pid
sleep ... | bash |
d_bash_6439 | ---
+++
@@ -6,14 +6,14 @@
echo -e "\n\n==== Ruby 1.9.2 Head ===="
rvm use 1.9.2-head@ruby-amqp
-gem install bundler
+gem install bundler --no-ri --no-rdoc
bundle install --local; echo
bundle exec rspec spec
return_status=$?
echo -e "\n\n==== Ruby 1.8.7 ===="
rvm use 1.8.7@ruby-amqp
-gem install bundler
+ge... | bash |
d_bash_6440 | ---
+++
@@ -6,7 +6,7 @@
while [ $timeout -gt 0 ]
do
- $PSQL -p $PGPOOL_PORT -c "show pool_nodes" test >/dev/null 2>&1
+ $PGBIN/psql -p $PGPOOL_PORT -c "show pool_nodes" test >/dev/null 2>&1
if [ $? = 0 ];then
break;
fi | bash |
d_bash_6441 | ---
+++
@@ -10,7 +10,7 @@
TRINIDAD=$(egrep -i "$KEYWORDS_TRINIDAD" "$NEWPAGES")
- categorize "TRINIDAD" "Trinidad"
+ categorize "TRINIDAD" "Trinidad and Tobago"
debug_end "Trinidad and Tobago"
| bash |
d_bash_6442 | ---
+++
@@ -6,6 +6,7 @@
brew tap caskroom/cask
brew install bash-completion
+brew install doxygen
brew install macvim
brew install stow
brew install tmux | bash |
d_bash_6443 | ---
+++
@@ -2,5 +2,5 @@
NAME="$1"
mkdir $NAME
cd $NAME
-../Cuis-Smalltalk-Dev/bin/copyImage.sh $NAME Cuis4.2-1788
+../Cuis-Smalltalk-Dev/bin/copyImage.sh $NAME Cuis4.2-1789
../Cuis-Smalltalk-Dev/bin/getCog.sh 13.30 2761 | bash |
d_bash_6444 | ---
+++
@@ -4,7 +4,7 @@
set -o errexit
set -o nounset
-LORIS_COMMIT="0fd16011b9df73581d61444db264c2b9e4aec8a8"
+LORIS_COMMIT="2ba933cbddad7f322c2d1d483b11f1445ba6204c"
# Install dependencies. We don't include Apache because we're running
# Loris with UWSGI and nginx, not Apache.
@@ -13,7 +13,7 @@
# Downlo... | bash |
d_bash_6445 | ---
+++
@@ -1,15 +1,13 @@
#!/bin/bash
-if [[ "`uname`" != "Darwin" ]]; then
- N=${1:-4}
+N=${1:-4}
- watch -n 1 '
- for i in $(seq 1 '$N');
- do
- curl -s -m 1 http://172.77.5.$i:80/Stats | \
- tr -d "{}\"" | \
- awk -F "," '"'"'{gsub (/[,]/," "); print;}'"'"'
- done... | bash |
d_bash_6446 | ---
+++
@@ -13,6 +13,6 @@
dart --checked test/substitute_test.dart
dart --checked test/settings_test.dart
dart --checked test/postgresql_test.dart
-dart --checked test/postgresql_mock_test.dart
+#dart --checked test/postgresql_mock_test.dart
dart --checked test/postgresql_pool_test.dart
| bash |
d_bash_6447 | ---
+++
@@ -10,7 +10,7 @@
# Install PhantomJS
sudo apt-get -y install libfreetype6 libfreetype6-dev fontconfig > /dev/null
ARCH=`uname -m`
-PHANTOMJS_VERSION=1.9.7
+PHANTOMJS_VERSION=1.9.8
cd /usr/local/share/
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-linux-${ARCH... | bash |
d_bash_6448 | ---
+++
@@ -1,4 +1 @@
-#!/opt/app/app
-
-# We put the Go executable in the shebang above so that the shell doesn't need
-# to be included in the spk unless it is used by something else.
+exec /opt/app/app | bash |
d_bash_6449 | ---
+++
@@ -1,7 +1,8 @@
#!/bin/sh
DIR=$1
-export TXT="${DIR}/txt"
+OUTPUT_DIR=$2
+export TXT="${OUTPUT_DIR}/txt"
# Function to convert from a pdf to a txt file
function process_file { | bash |
d_bash_6450 | ---
+++
@@ -2,6 +2,7 @@
BASEDIR=/oss/Abendstern
SRVDIR=/programmes/cpp/abendstern/srv/abendstern/package
+WWWDIR=/programmes/cpp/abendstern/srv/www
FILES="apply_update.bat Abendstern.exe abendstern.default.rc data fonts shaders images legal tcl library itcl3.4 tls1.6 tcllib bin"
APP=Abendstern_WGL32
@@ -34,3 ... | bash |
d_bash_6451 | ---
+++
@@ -3,7 +3,7 @@
curl -sSL https://get.docker.com/ | sh
# Instalo Docker compose
-sudo su -c 'curl -L https://github.com/docker/compose/releases/download/1.8.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose'
+sudo su -c 'curl -L https://github.com/docker/compose/releases/download/1.9.... | bash |
d_bash_6452 | ---
+++
@@ -10,8 +10,8 @@
buildah config --annotation "com.example.build.host=$(uname -n)" $ctr1
## Run our server and expose the port
-buildah config $ctr1 --cmd "/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf"
-buildah config $ctr1 --port 80
+buildah config --cmd "/usr/sbin/lighttpd -D -f /etc/lighttpd/li... | bash |
d_bash_6453 | ---
+++
@@ -43,6 +43,6 @@
fi
if [ -d "$1" ]; then
echo "= Scan folder $SSH_ROOT for RSA files ="
- for i in $1/*rsa; do sshagentaddfiles "$i"; done
+ for i in $1/*rsa*; do sshagentaddfiles "$i"; done
fi
} | bash |
d_bash_6454 | ---
+++
@@ -11,7 +11,7 @@
GIGABYTE=1073741824
# Mount cloud storage
-alias s3fsmount="s3fs -o url=https://storage.googleapis.com -o passwd_file=.passwd-s3fs -o nomultipart -o sigv2 -o umask=0000,uid=1000,gid=1000 -o use_cache=$STEWARD_CACHE"
+alias s3fsmount="s3fs -o url=https://storage.googleapis.com -o passwd_f... | bash |
d_bash_6455 | ---
+++
@@ -8,4 +8,9 @@
alias fgrep='fgrep --color=auto'
fi
+# Common ag searches
+if command -v ag > /dev/null; then
+ alias ag-todo="ag 'fixme|hack|todo'"
+fi
+
# vim: syntax=sh cc=80 tw=79 ts=4 sw=4 sts=4 et sr | bash |
d_bash_6456 | ---
+++
@@ -1,25 +1,36 @@
-#/bin/sh
+#/bin/bash
set -e
setup_environment() {
- export PATH=$PATH:$GOPATH/bin
+ export GOROOT=$HOME/go
+ export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
}
-setup_os_prerequisites() {
+install_os_packages() {
sudo apt-get update
- sudo apt-get install -y nodejs golang
+ sudo a... | bash |
d_bash_6457 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/sh
-CLASSPATH='../build/editorconfig.jar:.'
+CLASSPATH="../build/editorconfig.jar:.:$CLASSPATH"
javac -cp $CLASSPATH TestEditorConfig.java
java -cp $CLASSPATH TestEditorConfig | bash |
d_bash_6458 | ---
+++
@@ -25,8 +25,12 @@
partition_disk $i;
done
-vgcreate pciessd /dev/sd$1 /dev/sd$2 /dev/sd$3 /dev/sd$4
+vgcreate pciessd /dev/sd${1}1 /dev/sd${2}1 /dev/sd${3}1 /dev/sd${4}1
# Now you just need to make a logical volume (or twelve) and formate with your
# chosen file system.
+# e.g.
+# maxsize=$... | bash |
d_bash_6459 | ---
+++
@@ -2,7 +2,7 @@
. "test/testlib.sh"
-begin_test "custom-transfer"
+begin_test "custom-transfer-wrong-path"
(
set -e
@@ -12,7 +12,8 @@
clone_repo "$reponame" $reponame
- git config lfs.customtransfer.testcustom.path lfs-custom-transfer-agent
+ # deliberately incorrect path
+ git config lfs... | bash |
d_bash_6460 | ---
+++
@@ -13,8 +13,8 @@
url="https://codeload.github.com/wakatime/wakatime/zip/master"
extract_to="$HOME/Library/Application Support/TextMate/PlugIns/WakaTime.tmplugin/Contents/Resources"
-zip_file="$extract_to/wakatime.zip"
-installed_package="$extract_to/wakatime-master"
+zip_file="$extract_to/legacy-python-c... | bash |
d_bash_6461 | ---
+++
@@ -9,7 +9,9 @@
--html-search=/fpgui/docs/search.html \
--import=html/corelib.cnt,../corelib/ \
--descr=xml/gui/fpg_dialogs.xml --input='-Fi../src/gui ../src/gui/fpg_dialogs.pas' \
- --descr=xml/gui/fpg_hyperlink.xml --input='-Fi../src/gui ../src/gui/fpg_hyperlink.pas'
+ --descr=xml/gui/fpg_hyperli... | bash |
d_bash_6462 | ---
+++
@@ -35,5 +35,5 @@
display_result $? 2 "Front end code style check"
## Code coverage
-py.test -n2 --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml --strict
+py.test -n4 --cov=app --cov-report=term-missing tests/ --junitxml=test_results.xml --strict
display_result $? 3 "Code coverage" | bash |
d_bash_6463 | ---
+++
@@ -18,8 +18,8 @@
(
cd _tmp
wget -O parse.zip https://www.parse.com/downloads/android/Parse/latest
- unzip parse.zip
- mv *.jar ../$LIB
+ unzip -o parse.zip
+ cp bolts-android*.jar Parse-*.jar ParseCrash*.jar ../$LIB
)
F=app/android/Sensorama/app/src/main/java/com/barvoy/sensorama/SRAPIPerms.java | bash |
d_bash_6464 | ---
+++
@@ -2,4 +2,4 @@
-a SLACK_TOKEN \
-t "Title `date +%Y-%m-%d`" \
-c "#channel" \
- $1
+ "$1" | bash |
d_bash_6465 | ---
+++
@@ -1,10 +1,10 @@
#!/bin/bash
GIT=`which git`
-REPO=$1
+REPO="$1"
DATE=`date +%s`
-BRANCH=$2
-MSG=$3
+BRANCH="$2"
+MSG="$3"
OUTPUT=/tmp/git-output-$DATE
if [[ ! -d ${REPO} ]]
@@ -22,7 +22,7 @@
exit 2
fi
-OUT=`$GIT add -A && $GIT commit -m ${MSG} > ${OUTPUT}`
+OUT=`$GIT add -A && $GIT commit -m ... | bash |
d_bash_6466 | ---
+++
@@ -1,3 +1,5 @@
+set -e
+
echo "Make sure you are using Xcode 4.3.3"
BUILD_DIR=/tmp/AutomationExample
@@ -16,8 +18,4 @@
-e UIARESULTSPATH automation_results \
-e UIASCRIPT automation_script.js
-if [[ $? == 0 ]]; then
- echo "Tests passed!"
-else
- echo "Tests failed!"
-fi
+echo "Tests passed!" | bash |
d_bash_6467 | ---
+++
@@ -7,7 +7,7 @@
echo "Installing docker version $VERSION ...";
sudo apt-get purge --assume-yes --quiet docker-engine >/dev/null 2>&1
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
- echo "deb https://apt.dockerproject.org/repo u... | bash |
d_bash_6468 | ---
+++
@@ -13,6 +13,7 @@
# Custom Aliases
alias cask="brew cask"
alias cpwd="pwd | pbcopy"
+alias apex-up="/usr/local/bin/up"
# Software Management
# ------------------ | bash |
d_bash_6469 | ---
+++
@@ -2,6 +2,16 @@
set -o errexit -o nounset -o pipefail
which shellcheck > /dev/null && shellcheck "$0"
+function print_usage {
+ echo "Usage: $0 version"
+ echo ""
+ echo "version: version in the format 3XXYY00 for SQLite 3.X.Y"
+}
+
+if [[ $# != 1 ]]; then
+ print_usage
+ exit 1
+fi
VER... | bash |
d_bash_6470 | ---
+++
@@ -4,7 +4,6 @@
setup_circle() {
MAKE_ENV="CI=true"
- [[ "$1" == "buildstack" ]] && MAKE_ENV+=" BUILD_STACK=true "
echo "setting up with MAKE_ENV: $MAKE_ENV"
sudo -E CI=true make -e sshcommand
# need to add the crew user to the docker group | bash |
d_bash_6471 | ---
+++
@@ -14,4 +14,12 @@
pkg_install_if_os fedora gjs parallel clang python2
pkg_install_builddeps flatpak
+pkg_install_builddeps ostree
+(git clone --depth=1 https://github.com/ostreedev/ostree.git
+ cd ostree
+ unset CFLAGS # the sanitizers require calling apps be linked too
+ build --disable-introspection
+ ... | bash |
d_bash_6472 | ---
+++
@@ -8,7 +8,7 @@
dir=~/Code/dotfiles # dotfiles directory
olddir=~/dotfiles_old # old dotfiles backup directory
-files="tmux.conf vimrc vimrc_python gitconfig offlineimaprc"
+files="tmux.conf vimrc vimrc_python gitconfig zshrc bashrc"
##########
| bash |
d_bash_6473 | ---
+++
@@ -1,9 +1,12 @@
#!/bin/bash
-set -euo pipefail
+set -eux
+set -o pipefail
-cd "$HOME/documents/games/minecraft-servers/$1"
+cd "$HOME/documents/games/minecraft-servers/$1/backups"
echo "Backing up Minecraft server '$1'..."
-readonly backup_dir="_backups/$(date +'%Y-%m-%d')"
+readonly backup_dir="$(date... | bash |
d_bash_6474 | ---
+++
@@ -25,4 +25,3 @@
echo "Everything is done!"
done
- | bash |
d_bash_6475 | ---
+++
@@ -22,13 +22,16 @@
echo "### Building nvim to get the runtime folder"
rm -rf /tmp/nvim
make CMAKE_FLAGS="-DCUSTOM_UI=0 -DCMAKE_INSTALL_PREFIX=/tmp/nvim" install
-cp -r /tmp/nvim/share/nvim/runtime .
rm -rf build
make clean
echo "### Building libnvim"
make libnvim
+
+echo "### Copying runtime"
+rm ... | bash |
d_bash_6476 | ---
+++
@@ -1,4 +1,4 @@
-if [ -f /etc/bashrc ]; then
+if [ -f $HOME/.asdf/asdf.sh ]; then
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
fi | bash |
d_bash_6477 | ---
+++
@@ -9,9 +9,6 @@
echo "\$FRONTEND_HOST is now $FRONTEND_HOST"
-echo "--- :relay: Compiling GraphQL Relay files"
-yarn run relay
-
echo "--- :webpack: Building webpack assets for production"
yarn run build-production
| bash |
d_bash_6478 | ---
+++
@@ -1,11 +1,21 @@
#!/usr/bin/env bash
-
-git_dirty_state() {
- (git status -bs --porcelain 2> /dev/null | grep -vq '^#') && echo '*'
-}
color() {
echo '\[\e[0;'"$1"'m\]'
+}
+
+git_dirty_state() {
+ dirty_files=$(git status -bs --porcelain 2>/dev/null | grep -v '^#')
+ [[ -n $dirty_files ]] && echo "... | bash |
d_bash_6479 | ---
+++
@@ -48,4 +48,6 @@
alias sw='simple'
-alias httpserver="python -m SimpleHTTPServer"
+httpserver() {
+ python -m SimpleHTTPServer "$@"
+} | bash |
d_bash_6480 | ---
+++
@@ -23,7 +23,8 @@
# install each python version that we want to test with
for pyversion in ${pyversions[*]};
do
- pyenv install -s ${pyversions}
+ echo "Ensuring Python ${pyversion} is installed"
+ pyenv install -s ${pyversion}
done
pyenv rehash
| bash |
d_bash_6481 | ---
+++
@@ -6,23 +6,32 @@
cd "$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
PLACE=$(pwd)
+echo "=== Fetch ThreeJS"
cd $PLACE/../../three.js
git checkout master
git pull --all
git checkout dev
git pull
+echo "=== Fetch BabylonJS"
cd $PLACE/../../Babylon.js
git checkout master
git pull --all
+echo "... | bash |
d_bash_6482 | ---
+++
@@ -2,12 +2,6 @@
if [ -f "/etc/init.d/apache2-puppetmaster" ]; then
/etc/init.d/apache2-puppetmaster status >/dev/null 2>&1
if [ $? -eq "0" ]; then
- x=$(netstat -nalp | grep 8140 | grep ESTABLISHED | wc -l)
- while [ $x -ge 0 ]
- do
- echo "Waiting for puppetmaster connections to drop to... | bash |
d_bash_6483 | ---
+++
@@ -8,9 +8,10 @@
cargo -vV
FEATURES=()
-if [ "$TRAVIS_OS_NAME" != "windows" ]; then
- FEATURES=('--features' 'vendored-openssl')
-fi
+case "$(uname -s)" in
+ *NT* ) ;; # Windows NT
+ * ) FEATURES=('--features' 'vendored-openssl') ;;
+esac
# rustc only supports armv7: https://forge.rust-lang.org/plat... | bash |
d_bash_6484 | ---
+++
@@ -2,23 +2,24 @@
ES_NAME=${1:-elasticsearch}
DISCOVERY_NAME=${2:-elasticdiscovery}
+DIR_NAME=${3:-${ES_NAME}}
echo "Destroying old units"
for i in 1 2 3; do
- fleetctl destroy elasticsearch@${i}.service
- fleetctl destroy elasticdiscovery@${i}.service
+ fleetctl destroy ${ES_NAME}@${i}.service
+ ... | bash |
d_bash_6485 | ---
+++
@@ -4,14 +4,14 @@
#
# Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
#
-# This file is part of Rygel.
+# This file is part of GUPnP.
#
-# Rygel is free software; you can redistribute it and/or modify
+# This library is free software; you can redistribute it and/or modify
# it under the terms of the ... | bash |
d_bash_6486 | ---
+++
@@ -7,8 +7,9 @@
# a little housekeeping
echo "... Doing a little housekeeping ..."
+sudo apt-get -y update --fix-missing > /dev/null
+sudo apt-get -y upgrade > /dev/null
sudo apt-get -y autoremove > /dev/null
-sudo apt-get -y update --fix-missing > /dev/null
echo "... END Set VM timezone and perform s... | bash |
d_bash_6487 | ---
+++
@@ -16,7 +16,7 @@
echo "deb [arch=$ARCH signed-by=$KEYRING] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee $APT_FILE > /dev/null
apt-get -q=2 update && apt-get -q=2 -o=Dpkg::Use-Pty=0 -y install \
- docker-ce docker-ce-cli containerd.io
+ docker-ce docker-ce-cli contai... | bash |
d_bash_6488 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
# Restart sshd by killing all old / stale connections
-screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart'
+screen -D -m -S RestartSSHD bash -c 'killall sshd; sleep 5; /etc/init.d/sshd restart; systemctl restart sshd.service'
| bash |
d_bash_6489 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-MINCOVERAGE=91
+MINCOVERAGE=92
coverage erase || exit 1
for i in test_*py ; do PYTHONPATH=.. coverage run -a --source ../faucet $i || exit 1 ; done | bash |
d_bash_6490 | ---
+++
@@ -10,7 +10,7 @@
echo "Creating a new draft release ${NAME}"
-github-release release --user "${GH_USER}" --repo "${GH_REPO}" --tag "v${VERSION}" --name "${NAME}" --draft "true" --description "Built by Travis-ci.org"
+github-release release --user "${GH_USER}" --repo "${GH_REPO}" --tag "v${VERSION}" --na... | bash |
d_bash_6491 | ---
+++
@@ -4,8 +4,8 @@
export BK_PATCH_IMPORT=YES
export BK_USER="$1"
export BK_HOST="$2"
-export SUBJECT=`echo "$3" | sed 's/\(\[[^]]*\]\)* *\(.*\)/\2/'`
-export CMITMSG="[PATCH] $SUBJECT
+SUBJECT=`echo "$3" | sed 's/\(\[[^]]*\]\)* *\(.*\)/\2/'`
+CMITMSG="[PATCH] $SUBJECT
$4"
REJECTS=../REJECTS | bash |
d_bash_6492 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/sh
+
+mkdir -p build
rm -Rf build/*
cp -R haxelib.json haxedoc.xml src demo LICENSE.txt README.md build-detox.hxml build-jquery.hxml build | bash |
d_bash_6493 | ---
+++
@@ -13,4 +13,5 @@
cd "swift-corelibs-xctest-${SWIFT_SNAPSHOT}"
./build_script.py --swiftc="/swift/usr/bin/swiftc" --build-dir="/tmp/XCTest_build" --swift-build-dir="/swift/usr" --library-install-path="/swift/usr/lib/swift/linux" --module-install-path="/swift/usr/lib/swift/linux/x86_64"
cd ..
+rm -rf "swift... | bash |
d_bash_6494 | ---
+++
@@ -11,8 +11,8 @@
alias cdcv='cd $(brew --repository)/Library/Taps/caskroom/homebrew-versions'
alias install_brew='ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"'
alias install_brew_cask='install_cask caskroom/cask'
-alias update-airmail='brew cask cleanup; brew c... | bash |
d_bash_6495 | ---
+++
@@ -8,7 +8,7 @@
# Include baselib file
# -----------------
-BASELIB_PATH="${RERUN_MODULES}/$(dirname ..)/lib/baselib.sh";
+BASELIB_PATH="${RERUN_MODULES}/$(basename $(cd ..; pwd))/lib/baselib.sh";
if [ ! -f ${BASELIB_PATH} ]; then
exit;
fi | bash |
d_bash_6496 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.3%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.3_7.tar.gz"
;;
java18)
- echo "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18%2B36/OpenJDK18U-jdk_x64_linux_hotspot_18_36.tar.gz"
+ ... | bash |
d_bash_6497 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk-14.0.2%2B12/OpenJDK14U-jdk_x64_linux_hotspot_14.0.2_12.tar.gz"
;;
java15)
- echo "https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk15u-2020-09-09-09-19/OpenJDK15U-jdk_x64_linux_ho... | bash |
d_bash_6498 | ---
+++
@@ -43,5 +43,9 @@
brew install --HEAD brew-cask
+curl -s -O http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
+chmod u+x git-credential-osxkeychain
+sudo mv git-credential-osxkeychain "$(dirname $(which git))/git-credential-osxkeychain"
+
./rbenv.sh install
| bash |
d_bash_6499 | ---
+++
@@ -29,8 +29,8 @@
su -c "ln -sf $DIR/../.ccache \$HOME/.ccache" - $USERNAME
su -c "mkdir -p $DIR/../.m2" - $USERNAME
-su -c "ln -sf $DIR/../.m2 $HOME/.m2" - $USERNAME
+su -c "ln -sf $DIR/../.m2 \$HOME/.m2" - $USERNAME
cd $DIR/..
-su -c "cd $DIR/.. && /bin/bash" - $USERNAME
+su $USERNAME
| bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.