document_id
stringlengths
8
12
document
stringlengths
50
3.21k
split
stringclasses
1 value
d_bash_19100
--- +++ @@ -17,11 +17,15 @@ if ! killall -9 jackd ; then echo "finished killing jackd" GOT_JACKD=1 + else + GOT_JACKD=0 # maybe it reappared? fi if ! killall -9 jackdmp ; then echo "finished killing jackdmp" GOT_JACKDMP=1 + else + GOT_JACKDM...
bash
d_bash_19101
--- +++ @@ -1,4 +1,6 @@ #!/usr/bin/env bash + +info "Creating symlinks..." # Symlink dotfiles to our home. ln -sf "$HOME/code/dotfiles" "$DOTFILES_DIR" @@ -28,3 +30,5 @@ # ctags" ln -sf "$DOTFILES_DIR/ctags/ctags" "$HOME/.ctags" + +info "Done."
bash
d_bash_19102
--- +++ @@ -24,4 +24,8 @@ ./manage.py migrate +./tests/Product_unit_test.py +./tests/Product__type_unit_test.py + exec ./manage.py test dojo.unittests +
bash
d_bash_19103
--- +++ @@ -1,22 +1,32 @@ #!/bin/bash -APP=${PREFIX}/bin/firefox +# 1) Extract the application into a directory under bin + +mkdir -p $PREFIX/bin/Firefox if [[ $(uname) == Linux ]]; then - mkdir -p ${PREFIX}/bin/Firefox - mv * ${PREFIX}/bin/Firefox - cat <<EOF >$APP + mv * $PREFIX/bin/Firefox/ +elif [[ $(un...
bash
d_bash_19104
--- +++ @@ -1,6 +1,11 @@ ./init_submodules.sh make clean -cd third_party/protobuf && ./autogen.sh && ./configure && make -j8 && cd ../.. -cd third_party/grpc && make -j8 && cd ../.. +cd third_party/protobuf \ + && ./autogen.sh \ + && ./configure && make install -j8 \ + && cd ../.. +cd third_party/grpc \ + && ma...
bash
d_bash_19105
--- +++ @@ -1,3 +1,5 @@ +#!/bin/bash + # Zsh if ! [ -d ~/.dotfiles ]; then git clone git@github.com:agsimeonov/dotfiles.git ~/.dotfiles
bash
d_bash_19106
--- +++ @@ -1,3 +1,3 @@ #!/bin/bash -[ ! -z "$payload" ] && payload='-d '$payload +[ ! -z "$payload" ] && payload="-d $payload" curl -v -k -H "Content-Type:application/json" -X $method -b cookies.txt -c cookies.txt $payload $url
bash
d_bash_19107
--- +++ @@ -13,7 +13,7 @@ # this way we also check subdirectories # The script `check-env-dep` uses process substitution which is **not** a standard `sh` feature! # See also: https://unix.stackexchange.com/questions/151925 -scripts=$($FIND scripts/ -type f -not -regex +scripts=$($FIND scripts/ -type f -not -regex ...
bash
d_bash_19108
--- +++ @@ -8,6 +8,8 @@ GALAXY_SLOTS="$NSLOTS" elif [ -f "$PBS_NODEFILE" ]; then GALAXY_SLOTS=`wc -l < $PBS_NODEFILE` +elif [ -n "$LSB_DJOB_NUMPROC" ]; then + GALAXY_SLOTS="$LSB_DJOB_NUMPROC" else GALAXY_SLOTS="1" unset GALAXY_SLOTS_CONFIGURED
bash
d_bash_19109
--- +++ @@ -21,6 +21,23 @@ cp /usr/bin/* $TMP/usr/bin cp /usr/sbin/* $TMP/usr/sbin + # Remove copied symlinks and wrappers of they exist + + SYMLINKS=$(cat ./src/symlinks.txt) + for binary in $SYMLINKS; do + if [[ -e $TMP${binary} ]]; then + rm -rf $TMP${binary} + fi + done + + WRAPPERS=...
bash
d_bash_19110
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -/user/local/R2015b.app/bin/matlab -nodisplay -nosplash -nodesktop -r "try, run('$(pwd)/matlab/CIBuildAndTest.m'), catch, exit(1), end, exit(0); " +/usr/local/R2015b.app/bin/matlab -nodisplay -nosplash -nodesktop -r "try, run('$(pwd)/matlab/CIBuildAndTest.m'), catch, exit(1), end,...
bash
d_bash_19111
--- +++ @@ -1,4 +1,4 @@ -xcodebuild test -project "../Mobile Buy SDK/Mobile Buy SDK.xcodeproj" \ +xcodebuild test -project "Mobile Buy SDK/Mobile Buy SDK.xcodeproj" \ -scheme "Mobile Buy SDK Tests" \ -sdk iphonesimulator \ -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.0'
bash
d_bash_19112
--- +++ @@ -22,3 +22,7 @@ then rm -f /etc/firewall fi + +# Stop cron before updates, it will be started again in the postupdate script. +# (RBL-7971) +[ -e /var/lock/subsys/crond ] && service crond stop
bash
d_bash_19113
--- +++ @@ -17,4 +17,4 @@ # When ENABLE_PUPPET_MODULES_RPM is true, puppet modules are installed from # rpm instead of git repo in p-o-i jobs export ENABLE_PUPPET_MODULES_RPM=true -export HASH_FILE='/tmp/stein_current_tripleo_hash' +export HASH_FILE='/tmp/delorean_stein_current_tripleo_hash'
bash
d_bash_19114
--- +++ @@ -15,4 +15,4 @@ build "darwin" "amd64" build "linux" "amd64" build "linux" "386" - +build "linux" "arm"
bash
d_bash_19115
--- +++ @@ -13,7 +13,7 @@ trap cleanup INT TERM EXIT -git clone https://github.com/Automattic/engine.io-client.git "$TEMPDIR" +git clone https://github.com/socketio/engine.io-client.git "$TEMPDIR" cd "$TEMPDIR" git checkout "$(git describe --tags --abbrev=0)" NODE_ENV=production npm install
bash
d_bash_19116
--- +++ @@ -1,22 +1,28 @@ # To be sourced in your .bashrc goto() { + local dir + local ret + if [ "$#" -eq 0 ]; then echo "Usage: goto <dirname> [<subpath>]" return 1 fi - DIR=$(goto-tool get "$1") + dir=$(goto-tool get "$1") + ret=$? - if [ "$?" -eq 0 ]; then + if [ "$ret" -eq 0 ]; then goto-too...
bash
d_bash_19117
--- +++ @@ -1,3 +1,3 @@ mkdir ~/ram -sudo mount -t tmpfs -o size=8G tmpfs ~/ram -echo 8GB ramdisk mounted at ~/ram +sudo mount -t tmpfs -o size=10G tmpfs ~/ram +echo 10GB ramdisk mounted at ~/ram
bash
d_bash_19118
--- +++ @@ -23,3 +23,10 @@ __pyenv_init command pip "$@" } + +# add pip-install location to PATH +if [ "$(uname)" = "Darwin" ]; then + for version in ${HOME}/Library/Python/*; do + export PATH="${PATH}:${version}/bin" + done +fi
bash
d_bash_19119
--- +++ @@ -1,21 +1,6 @@ #!/usr/bin/zsh - -# Node/npm setup -export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc export NDENV_ROOT=$USER_BIN_HOME/lib/ndenv -# This could be problematic... either don't ever use system node/npm or have it -# store its packages alongside those of the same version of node insta...
bash
d_bash_19120
--- +++ @@ -27,6 +27,8 @@ echo "Updating ruby gems" rvm use system gem update --system + rvm use default + gem udpate echo "" echo "Updating prezto subtree"
bash
d_bash_19121
--- +++ @@ -13,4 +13,4 @@ build_lib build_fuzzer set -x -$CXX $CXXFLAGS -std=c++11 $SCRIPT_DIR/libarchive_fuzzer.cc -I BUILD/libarchive BUILD/.libs/libarchive.a $LIB_FUZZING_ENGINE -lz -lxml2 -lcrypto -lssl -o $EXECUTABLE_NAME_BASE +$CXX $CXXFLAGS -std=c++11 $SCRIPT_DIR/libarchive_fuzzer.cc -I BUILD/libarchive BUI...
bash
d_bash_19122
--- +++ @@ -4,3 +4,5 @@ sudo apt-get install -y python3 python3-pip sudo apt-get install -y postgresql postgresql-contrib postgresql-client sudo apt-get install -y python3-psycopg2 + +echo NOTE: you'll need to add your p99tunnel directory to your PYTHONPATH.
bash
d_bash_19123
--- +++ @@ -13,5 +13,5 @@ if [[ "${OSTYPE//[0-9.]/}" == 'darwin' ]]; then alias gwip='git add -A; git ls-files --deleted -z | xargs git rm; git commit -m "--wip--"' - cd ~/eatfirst/cave + workon cave fi
bash
d_bash_19124
--- +++ @@ -27,9 +27,9 @@ if test -e setup.py; then tmp_path=$(mktemp -d) export PATH="$tmp_path/bin:$PATH" - export PYTHONPATH="@pythonSitePackages@:$PYTHONPATH" + export PYTHONPATH="$tmp_path/@pythonSitePackages@:$PYTHONPATH" mkdir -p "$tmp_path/@pythonSitePackages@" - ...
bash
d_bash_19125
--- +++ @@ -1,14 +1,6 @@ #!/usr/bin/env bash set -eo pipefail IFS=$'\n\t' - -if [[ -z "$GITHUB_TOKEN" ]]; then - cat <<EOF -The uhub test script requires the following env: - - GITHUB_TOKEN -EOF - exit 1 -fi; ./scripts/download-uhub.sh @@ -22,7 +14,7 @@ function initRepo() { cd $REPO_PATH git...
bash
d_bash_19126
--- +++ @@ -1,5 +1,7 @@ #!/bin/bash # +# Add new host to GridEngine. +# via cron array_check () { for i in ${currentlist[@]};do if [ "$1" = "$i" ];then
bash
d_bash_19127
--- +++ @@ -1,6 +1,8 @@ set -e # sudo apt-get install libxpm-dev libxt-dev +# sudo ln -s /usr/include/lua5.3 /usr/include/lua +# sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/local/lib/liblua.so make clean
bash
d_bash_19128
--- +++ @@ -3,3 +3,5 @@ mkdir -p $(pwd)/rpmbuild/SOURCES/ tar -cvzf $(pwd)/rpmbuild/SOURCES/rh-devsuite-src-2.1.0-1.tar.gz -C ./SOURCES/ rh-devsuite-2.1.0/ rpmbuild -ba SPECS/rh-devsuite.spec --define "_topdir $(pwd)/rpmbuild" +sha256sum $(pwd)/rpmbuild/RPMS/x86_64/*.rpm > SHA256SUMS +sha256sum $(pwd)/rpmbuild/SRP...
bash
d_bash_19129
--- +++ @@ -1,13 +1,16 @@ #!/bin/bash -# Set ZABBIX_HOST if not already done +# Set ZABBIX_HOST environment variable +# to container hostname if not already set. export ZABBIX_HOST=${ZABBIX_HOST:-$HOSTNAME} -# if `docker run` first argument start with `-` the user is passing jenkins swarm launcher arguments +#...
bash
d_bash_19130
--- +++ @@ -1,7 +1,7 @@ #!/bin/bash set -e -if [ ! $HOME/.cache/$SQLCL_FILE ]; then +if [ ! -d $HOME/.cache/sqlcl ]; then .travis/download.sh -p sqlcl unzip -q $SQLCL_FILE bash mv sqlcl $HOME/.cache
bash
d_bash_19131
--- +++ @@ -3,10 +3,10 @@ # using transmission-remote and environment authentication # Could also use '--netrc' with corresponding external configuration -if [ -z "$TR_AUTH" ]; do +if [ -z "$TR_AUTH" ]; then echo "Must set TR_AUTH in local environment to access transmission-daemon" exit 1 -done +fi for fil...
bash
d_bash_19132
--- +++ @@ -4,11 +4,11 @@ sudo cp -f .travis/apache2/www_simplemappr_local.conf /etc/apache2/sites-available/www_simplemappr_local.conf sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/www_simplemappr_local.conf -sudo a2ensite "www.simplemappr.local" +sudo a2ensite www_simplemap...
bash
d_bash_19133
--- +++ @@ -1,8 +1,13 @@ prompt_bbennett_precmd () { vcs_info + PROMPT_PREFIX='' + if [ "$SSH_CLIENT" != "" ]; then + # we're in an ssh session, add hostname + PROMPT_PREFIX="%{$fg[blue]%}%m%{$reset_color%} " - PROMPT="${vcs_info_msg_0_}%(?.%{$fg[green]%}.%{$fg[red]%})❯ %{$reset_color%}" + fi + ...
bash
d_bash_19134
--- +++ @@ -4,6 +4,9 @@ git config --global user.email "charles.pax@gmail.com" git config --global user.name "Charles Edward Pax" +# Push only the current branch rather than all branches when using 'git push' +git config --global push.default simple + # Use vim as difftool git config --global diff.tool vimdiff ...
bash
d_bash_19135
--- +++ @@ -2,7 +2,7 @@ then DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - eval "$(sed -E 's/^/apm install &/' $DIR/apm)" + eval "$(sed -E 's/^[a-z]/apm install &/' $DIR/apm)" mkdir ~/.atom cp $DIR/keymap.cson $DIR/snippets.cson $DIR/config.cson ~/.atom
bash
d_bash_19136
--- +++ @@ -1,7 +1,9 @@ # Environment variables for the OpenShift 4.x installer # Modify them to suit your environment -# source them: source openshift-libvirt.sh +# copy them to the installer path and source them: +# cp openshift-libvirt.sh ~/Go/src/github.com/openshift/installer/. +# source openshift-libvirt.sh...
bash
d_bash_19137
--- +++ @@ -1,8 +1,8 @@ #!/bin/bash set -e -version=12.4.1-1 -majorVersion=12.4 +version=12.5.0 +majorVersion=12.5 download_link=https://packages.chef.io/stable/ubuntu/14.04/chef-server-core_${version}_amd64.deb directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bash
d_bash_19138
--- +++ @@ -1,2 +1,2 @@ #!/bin/sh -(cd /home/chaos/.minecraft && /usr/bin/java -jar minecraft.jar) +(cd $HOME/.minecraft && /usr/bin/java -jar minecraft.jar)
bash
d_bash_19139
--- +++ @@ -20,5 +20,6 @@ core/make core/zlib ) +pkg_bin_dirs=(bin) pkg_lib_dirs=(lib) pkg_include_dirs=(include)
bash
d_bash_19140
--- +++ @@ -1,3 +1,3 @@ -#!/bin/sh +#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" jsdoc $DIR/README.md $DIR/*.js -c $DIR/jsdoc.json -d $1
bash
d_bash_19141
--- +++ @@ -16,3 +16,4 @@ git config --file "$git_config_dir/config" user.signingkey 100B37EAF2164C8B git config --file "$git_config_dir/config" commit.gpgsign true git config --file "$git_config_dir/config" gpg.program gpg +git config --file "$git_config_dir/config" core.editor nvim
bash
d_bash_19142
--- +++ @@ -1,13 +1,31 @@ -#!/bin/sh +#!/bin/bash + +echo "Installing dependencies..." +npm install +echo "done" +echo + +echo "Creating directory tree..." +DEPENDENCYPATHS=$(npm ls -parseable) + +declare -A dependencies + +for DEP in $DEPENDENCYPATHS; do + DEPNAME=$(basename $DEP) + dependencies[$DEPNAME]=$DEP +do...
bash
d_bash_19143
--- +++ @@ -25,4 +25,4 @@ sudo /usr/bin/mongod --fork --quiet --config /etc/mongod.conf -mongoimport -d nomad -c locations --type tsv --file allCountries.txt --fields countrycode,postalcode,name,name1,code1,name2,code2,name3,code3,latitude,longitude,accuracy +mongoimport -d nomad -c locations --type tsv --file l...
bash
d_bash_19144
--- +++ @@ -8,7 +8,7 @@ if [ -n "$artifact_urls" ]; then for URL in $(echo $artifact_urls | sed -e "s| |\n|g" | sort -u); do - curl -o $TMP_DATA/file_data "$artifact_urls" + curl --globoff -o $TMP_DATA/file_data "$artifact_urls" if file -b $TMP_DATA/file_data | grep RPM &>/dev/null; then yum i...
bash
d_bash_19145
--- +++ @@ -8,7 +8,7 @@ export NODE_SIZE=m4.large export MASTER_SIZE=m3.large export SSH_KEY=/home/vagrant/.ssh/kops.pub -export CIDR=10.20.0.0/16 +export CIDR=10.0.0.0/16 # if you need to know what AZ are available #aws ec2 describe-availability-zones --region ${REGION}
bash
d_bash_19146
--- +++ @@ -8,6 +8,10 @@ saam=$(pwd) n3Dir=$saam/n3 sameAsn3Dir=$n3Dir/n3-seeAlso + +sesameEndpoint=http://lod.isi.edu/openrdf-sesame/repositories/saam_openrdf/statements +#sesameEndpoint=http://localhost:8080/openrdf-sesame/repositories/saam_openrdf/statements + sesameUploadEndpoint=$sesameEndpoint?baseURI='<htt...
bash
d_bash_19147
--- +++ @@ -16,6 +16,6 @@ fi # Symlink the org-mode directory. -if [ ! -d "$HOME/Dropbox/org" ] && [ ! -L "$HOME/Dropbox/org" ]; then +if [ ! -d "$HOME/org" ] && [ ! -L "$HOME/org" ]; then ln -s "$HOME/Dropbox/org" "$HOME/org" fi
bash
d_bash_19148
--- +++ @@ -25,3 +25,13 @@ $sinatra_gen -f | grep "\-f" $sinatra_gen --he | grep "--he" } + +it_creates_a_directory_with_the_name_provided() { + $sinatra_gen foo + test -d foo +} + +it_does_not_create_a_directory_if_it_already_exists() { + mkdir foo + $sinatra_gen foo | grep EXISTS +}
bash
d_bash_19149
--- +++ @@ -8,15 +8,16 @@ [[ ! "$(type -P apm)" ]] && e_error "Atom packages need Atom (and apm) to install." && return 1 packages=( - linter - merge-conflicts duplicate-and-comment editor-stats + editorconfig emmet fold-comments highlight-selected + linter + merge-conflicts + sync-settings ...
bash
d_bash_19150
--- +++ @@ -24,26 +24,22 @@ pip install --upgrade pip pip install --upgrade pdir pip install --upgrade virtualenv -pip install --upgrade pipsi +pip install --upgrade pipx pip install --upgrade pipenv pyenv pip-update pip install pathlib2==2.1.0 # for pipenv pyenv rehash -function pipsi_install { - [[ -d ~/....
bash
d_bash_19151
--- +++ @@ -1 +1,3 @@ +[ -e /etc/profile.d/proxy.sh ] && source /etc/profile.d/proxy.sh + puppet apply -t --hiera_config /root/openshift-scripts/hiera.yaml --modulepath=/root/openshift-scripts/modules /root/openshift-scripts/manifests/site.pp
bash
d_bash_19152
--- +++ @@ -2,6 +2,10 @@ if [ -n "$PLATFORM" ] && [ $PLATFORM = "mac" ]; then # Postgres.app: Add bin to path for psql commands + if [ -d "/Applications/Vagrant/bin" ]; then + export PATH="/Applications/Vagrant/bin:$PATH" + fi + if [ -d "/Applications/Postgres.app/Contents/MacOS/bin" ]; then export...
bash
d_bash_19153
--- +++ @@ -10,7 +10,7 @@ exit 0 fi -cat "${DOKKU_PRIVATE_KEY}" > deploy_key.pem +cat $DOKKU_PRIVATE_KEY > deploy_key.pem ssh-add deploy_key.pem git clone dokku@$DOKKU_HOST:$DOKKU_APPNAME deploy cd deploy
bash
d_bash_19154
--- +++ @@ -20,8 +20,13 @@ if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then TRAVIS_BRANCH_COMMIT="$(git rev-parse --verify -q "${TRAVIS_BRANCH}")" - # audit any modified casks (download if version, sha256, or url changed) - run developer/bin/audit_modified_casks "${TRAVIS_BRANCH_COMMIT}..${TRAVIS_COMMIT}" + ...
bash
d_bash_19155
--- +++ @@ -3,17 +3,12 @@ set -e TOKEN=${GH_TOKEN:?'GH_TOKEN not set!'} +REPO=${TRAVIS_REPO_SLUG:?'TRAVIS_REPO_SLUG not set!'} +echo "Writing OAuth token to .netrc." touch ${HOME}/.netrc chmod 0600 ${HOME}/.netrc -echo "Writing OAuth token to .netrc." echo "machine github.com login $TOKEN password x-oauth-ba...
bash
d_bash_19156
--- +++ @@ -1,7 +1,6 @@ #! /bin/sh -if [ -z "$NACL_SDK_ROOT" -o -z "$PNACL_TRANSLATE" -o -z "$PNACL_FINALIZE" ] -then +if [ -z "$NACL_SDK_ROOT" -o -z "$PNACL_TRANSLATE" -o -z "$PNACL_FINALIZE" ]; then echo "One or more variables need to be set: \$NACL_SDK_ROOT=$NACL_SDK_ROOT \$PNACL_TRANSLATE=$PNACL_TRANSLAT...
bash
d_bash_19157
--- +++ @@ -7,7 +7,7 @@ cp ./Mythras.html ../M-Space/M-Space.html cp ./Mythras.css ../M-Space/M-Space.css cp ./translation.json ../M-Space/translation.json -cp -r ./translations ../M-Space/ +#cp -r ./translations ../M-Space/ # Flip the sheet variant toggle sed -i 's/name="attr_sheet_varient" value="mythras" ch...
bash
d_bash_19158
--- +++ @@ -21,9 +21,21 @@ echo "Usage: gvm <command> <candidate> [version]" echo " gvm offline <enable|disable>" echo "" - echo " command : install, uninstall, list, use, current, version, default, selfupdate, broadcast, help, offline" + echo " commands:" + echo " install or i [candida...
bash
d_bash_19159
--- +++ @@ -2,14 +2,23 @@ if [ "$TRAVIS_BRANCH" == "master" ]; then TAG=latest + if [ ! -z "$TRAVIS_TAG" ]; then TAG=$TRAVIS_TAG fi IMAGE_NAME=clems4ever/authelia + IMAGE_WITH_TAG=$IMAGE_NAME:$TAG + echo "Login to Dockerhub." docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; - do...
bash
d_bash_19160
--- +++ @@ -8,5 +8,6 @@ for PATTERN in .cvs .git .hg .svn; do GREP_OPTIONS+="--exclude-dir=$PATTERN " done -export GREP_OPTIONS+='--color=auto ' +GREP_OPTIONS+="--color=auto" +export GREP_OPTIONS="$GREP_OPTIONS" export GREP_COLOR='1;32'
bash
d_bash_19161
--- +++ @@ -1 +1 @@ -export PYTHONPATH=.; py.test -v --cov banzai --cov visitors --cov nmmd --cov hercules --cov-report html --cov-config=.coveragerc +export PYTHONPATH=.; py.test -v --ignore=build --cov banzai --cov visitors --cov nmmd --cov hercules --cov-report html --cov-config=.coveragerc
bash
d_bash_19162
--- +++ @@ -11,6 +11,11 @@ echo "Media Cloud cannot be installed in a file path with spaces in its name" exit 1 fi + +JAVA_HOME=$JAVA_HOME ./script/run_with_carton.sh ~/perl5/perlbrew/bin/cpanm \ + --local-lib-contained local/ \ + --verbose \ + Compress::Raw::Lzma # Install dependency modules; ...
bash
d_bash_19163
--- +++ @@ -1,18 +1,27 @@ #!/bin/sh -# Start postgresql -/usr/bin/pg_ctlcluster "9.4" main start +# If empty data directory +if [ ! -f /var/lib/postgresql/9.4/main/PG_VERSION ] +then + # Create postgres data directory + mkdir -p /var/lib/postgresql/9.4/main + chown postgres:postgres /var/lib/postgresql/9....
bash
d_bash_19164
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash -echo urde-$1-win32-$2-sse2.exe > $3 -echo urde-$1-win32-$2-sse41.exe >> $3 -echo urde-$1-win32-$2-avx.exe >> $3 -echo urde-$1-win32-$2-avx2.exe >> $3 +echo urde-$1-win32-$2-sse2.zip > $3 +echo urde-$1-win32-$2-sse41.zip >> $3 +echo urde-$1-win32-$2-avx.zip >> $3 +echo urde-$1-win...
bash
d_bash_19165
--- +++ @@ -2,4 +2,4 @@ # This file is part of the K5 bot project. # See files README.md and COPYING for copyright and licensing information. curl http://ftp.monash.edu.au/pub/nihongo/edict.gz | gunzip | sed "1 d" > edict -curl http://ftp.monash.edu.au/pub/nihongo/enamdict.gz | gunzip | sed "1 d" >> enamdict +cur...
bash
d_bash_19166
--- +++ @@ -1,4 +1,3 @@ GIT=https://gitlab.redox-os.org/redox-os/orbutils.git -BRANCH=redox-unix BINDIR=/ui/bin DEPENDS="orbital"
bash
d_bash_19167
--- +++ @@ -6,5 +6,5 @@ # XML files are not executable chmod -x pester-tests.xml -# Exit with failure if number of failed tests exceeds threshold -[ ! $failed_tests -gt 11 ] +# Return number of failed tests as exit code (more than 0 will be an error) +exit $failed_tests
bash
d_bash_19168
--- +++ @@ -27,7 +27,7 @@ rm -rf $MYTEMP # Make required directories for hook deployment -awk -F"," '{ OFS = "/" } ; NR!=1{print $1,$2}' $INPUT | xargs -I % mkdir -p $REDCAP_HOOKS/% +awk -F"," 'NR!=1{printf "mkdir -p %s/%s/%s/\n",ENVIRON["REDCAP_HOOKS"],$1,$2}' $INPUT | sh # Create sym links for hooks to be ex...
bash
d_bash_19169
--- +++ @@ -14,8 +14,8 @@ cross test --target $TARGET cross test --target $TARGET --release - cross run --target $TARGET - cross run --target $TARGET --release + # cross run --target $TARGET + # cross run --target $TARGET --release } # we don't run the "test phase" when doing deploys
bash
d_bash_19170
--- +++ @@ -3,7 +3,7 @@ set -eu -o pipefail cd v2 -go mod tidy +go mod tidy -compat=1.17 if [ -d vendor ]; then rm -rf vendor/ go mod vendor
bash
d_bash_19171
--- +++ @@ -1,5 +1,8 @@ +# Disable sending of analytics data. +export HOMEBREW_NO_ANALYTICS=1 + # Disable beer emoji in homebrew output. export HOMEBREW_NO_EMOJI=1 -# Disable sending of analytics data. -export HOMEBREW_NO_ANALYTICS=1 +# Disable lock-file generation (these are for debugging). +export HOMEBREW_BUND...
bash
d_bash_19172
--- +++ @@ -6,7 +6,7 @@ REL_VERSION=$(grep -F "<belframework-release.version>" pom.xml \ | grep ">.*<" -o | tr -d '<>') -BUILD_VERSION="${REL_VERSION}-${bamboo.buildNumber}" +BUILD_VERSION="${REL_VERSION}-${buildNumber}" echo "REL_VERSION: ${REL_VERSION}" echo "BUILD_VERSION: ${BUILD_VERSION}"
bash
d_bash_19173
--- +++ @@ -10,7 +10,13 @@ changelog=${CHANGELOG} fi -python 1.get_merged_prs.py ${package} -python 2.find_pr_branches.py ${package} -python 3.find_pr_changelog_section.py ${package} ${changelog} -python 4.check_consistency.py ${package} > consistency.html +if [[ -z $PYEXEC ]]; then + pyexec=python +else +...
bash
d_bash_19174
--- +++ @@ -16,7 +16,8 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" # Copy into tmpdir -cp -R $DIR/website/ $DEPLOY/ +shopt -s dotglob +cp -r $DIR/website/* $DEPLOY/ # Change into that directory pushd $DEPLOY &>/dev/null @@ -25,6 +26,7 @@ touch .gitignore echo ".sass-cache" >> .gitignore echo "bu...
bash
d_bash_19175
--- +++ @@ -8,5 +8,5 @@ yq=$2 for f in $chartdir/*.yaml; do - $yq w --inplace --style=double $f 'metadata.annotations['include.release.openshift.io/self-managed-high-availability']' true + $yq w -d'*' --inplace --style=double $f 'metadata.annotations['include.release.openshift.io/self-managed-high-availabilit...
bash
d_bash_19176
--- +++ @@ -3,10 +3,8 @@ # seqcloud bash script loader # (c) 2017 Michael J. Steinbaugh # This software is provided under an MIT License -# http://seq.cloud +# http://seq.cloud/ -# http://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within -# seqcloud_dir=${BASH_SOURCE%/*}...
bash
d_bash_19177
--- +++ @@ -48,6 +48,11 @@ # main +if [ -n "$DESKTOP_SESSION" ];then + eval $(gnome-keyring-daemon --start) + export SSH_AUTH_SOCK +fi + if type "keychain" &> /dev/null; then _sc_keychain_init fi
bash
d_bash_19178
--- +++ @@ -10,6 +10,8 @@ alias df='df -h' alias du='du -h' +alias f='find . -name' + if [ $OS = 'Darwin' ]; then pman () { man -t "${1}" | open -f -a /Applications/Preview.app
bash
d_bash_19179
--- +++ @@ -7,6 +7,7 @@ FC_DB_HOST="localhost" FC_DB_PORT="5432" FC_DB_USER=$(whoami) +FC_DATA_FILES_PATH="$HOME/feature-creature/data/" echo "Setting FC_DB_NAME environment variable:" $FC_DB_NAME export FC_DB_NAME=$FC_DB_NAME @@ -16,6 +17,8 @@ export FC_DB_PORT=$FC_DB_PORT echo "Setting FC_DB_USER environme...
bash
d_bash_19180
--- +++ @@ -1,6 +1,7 @@ #!/bin/sh here=$(cd "$(dirname "$0")"; pwd) base=$here/.. +modified_llvm_files=$base/modified_LLVM_files # This is where all build products will be installed. destdir=$base/build/built @@ -9,6 +10,8 @@ # Build LLVM "out-of-source" in a scratch directory. builddir=$base/build/llvm mkd...
bash
d_bash_19181
--- +++ @@ -2,7 +2,6 @@ if (( ${+commands[fbterm]} )); then if [[ "$TTY" = /dev/tty* ]] ; then - fbterm - exit + fbterm && exit fi fi
bash
d_bash_19182
--- +++ @@ -14,6 +14,7 @@ if [ -z "${ins}" ]; then if [ ${ext} = "sed" ]; then echo | ${cmd} > ${tmp} + perl -i -p0 -e 's/\n\Z//' ${tmp} else ${cmd} < /dev/null > ${tmp} fi @@ -25,6 +26,7 @@ (cat ${i} && echo -en "\0") | ${cmd} >> ${tmp} elif [ ${ext} = "...
bash
d_bash_19183
--- +++ @@ -13,5 +13,9 @@ if [[ $RELEASE ]]; then mvn -B release:prepare -DreleaseVersion=$RELEASE -DdevelopmentVersion=$NEXT -DskipTests mvn -B release:perform --settings=".buildscript/settings.xml" -DskipTests + # Modify version in README.md sed -i "s/<version>\(.*\)</<version>$RELEASE</" README.md + gi...
bash
d_bash_19184
--- +++ @@ -12,11 +12,6 @@ cmd=${=EDITOR} else project=$* - fi - - if [[ -z "$project" ]]; then - echo "You have to specify a project name." - return fi for basedir ($PROJECT_PATHS); do
bash
d_bash_19185
--- +++ @@ -1,5 +1,3 @@ -#!/bin/bash - function solve() { deal_idx="$1" @@ -14,5 +12,3 @@ echo "Unsolved"; fi } - -solve "$1"
bash
d_bash_19186
--- +++ @@ -13,12 +13,15 @@ exit 1 fi +brew update +brew upgrade brew install \ bash \ clang-format \ cmake \ coreutils \ diffutils \ + findutils \ git \ gnu-sed \ grep \
bash
d_bash_19187
--- +++ @@ -4,7 +4,7 @@ : ${PYTHON:=python} : ${PY_TEST:=py.test} -case $PY_TEST in */*);; *) PY_TEST=`which "$PY_TEST"`;; esac +case $PY_TEST in */*);; *) PY_TEST=`which "$PY_TEST"` || PY_TEST=;; esac if [ ! -x "${PY_TEST}" ]; then printf >&2 'unable to find pytest\n'
bash
d_bash_19188
--- +++ @@ -29,4 +29,11 @@ {toxinidir}/tools/ostestr_compat_shim.sh {posargs} EOF +set +e +$script_path/run-tox.sh pep8 +pep8_code=$? $script_path/run-tox.sh $venv-neutron-lib-master +venv_code=$? +set -e +exit_code=$(( $pep8_code || $venv_code )) +exit $exit_code
bash
d_bash_19189
--- +++ @@ -8,18 +8,10 @@ COMPREPLY=() _get_comp_words_by_ref -n : cur - if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W "`plz --help 2>&1 | grep -Eo -- '--?[a-z_]+'`" -- $cur ) ) + if [[ "$cur" == -* || "$COMP_CWORD" == "1" || ("$COMP_CWORD" == "2" && "${COMP_WORDS[1]}" == "query")]]; then + ...
bash
d_bash_19190
--- +++ @@ -1,13 +1,12 @@ -zsh_cache=$HOME/.zsh_cache -mkdir -p $zsh_cache - # reload zshrc function src() { autoload -U compinit zrecompile - compinit -d $zsh_cache/zcomp-$HOST - for f in $HOME/.zshrc $zsh_cache/zcomp-$HOST; do - zrecompile -p $f && rm -f $f.zwc.old + compinit -d "$ZSH/cache/zcomp-$HOST"...
bash
d_bash_19191
--- +++ @@ -8,7 +8,7 @@ # Note: # - This script modifies Cargo.toml and Cargo.lock while running # - This script exits with 1 if there are any unstaged changes -# - This script requires nightly Rust +# - This script requires nightly Rust and cargo-hack # # Refs: https://github.com/rust-lang/cargo/issues/5657 @...
bash
d_bash_19192
--- +++ @@ -1,14 +1,27 @@ #!/bin/bash + +if [[ "$(uname)" == 'Darwin' ]]; then + readonly GSED=$(which gsed) + + if [ ! -x "${GSED}" ]; then + echo 'GNU Sed could not be found on Mac OS X.' >&2 + echo 'Please install it via "brew install gnu-sed".' >&2 + fi + + readonly SED="${GSED}" +else + SED=$(which s...
bash
d_bash_19193
--- +++ @@ -1,5 +1,8 @@ #!/bin/bash set -e + +DEBUG_PATH=./target/thumbv7em-none-eabihf/release/examples/launchpad_blink +RELEASE_PATH=${DEBUG_PATH/debug/release} # # launchpad build script @@ -9,16 +12,19 @@ echo "Running xargo debug..." xargo build --example launchpad_blink +arm-none-eabi-size -B -x ${DEB...
bash
d_bash_19194
--- +++ @@ -21,4 +21,4 @@ git checkout ${BRANCH} /opt/puppetlabs/puppet/bin/gem install r10k --no-rdoc --no-ri /opt/puppetlabs/puppet/bin/r10k puppetfile install --verbose -/opt/puppetlabs/bin/puppet apply --environment=production /etc/puppetlabs/code/environments/production/manifests +/opt/puppetlabs/bin/puppet a...
bash
d_bash_19195
--- +++ @@ -7,6 +7,8 @@ rm git-marks1.txt git-marks2.txt fi touch git-marks1.txt git-marks2.txt +[ -f git-authors.txt ] || echo 'lapo@lapo.it = Lapo Luchini <lapo@lapo.it>' > git-authors.txt +mtn ls branches --ignore-suspend-certs | sort -V | awk -F . '{ print $0 " = " ($4 ? $4 : "trunk") }' > git-branches.txt...
bash
d_bash_19196
--- +++ @@ -11,6 +11,7 @@ if [ $RESET = "true" ] then rm -rf gh-pages/* + rm -rf _smugmug_cache fi # copy generated HTML site to built branch
bash
d_bash_19197
--- +++ @@ -15,11 +15,15 @@ sudo apt-get install -y luarocks lua-check rubygems ruby-dev sudo luarocks install luacheck -# Install nvm, node and npm -touch ~/.bash_profile -wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] &...
bash
d_bash_19198
--- +++ @@ -8,4 +8,5 @@ cd build cmake .. make -./sarg_test_c +cd .. +./build/sarg_test_c
bash
d_bash_19199
--- +++ @@ -1,9 +1,10 @@ #!/bin/bash -curl -f -s -I \ +curl -f -v -I \ -H "Accept: application/n-quads" \ - "${BASE_URL}default-subject" \ -| tr -d '\r\n' \ -| grep 'Link: <https://www.w3.org/ns/ldt/core/templates#Document>; rel=https://www.w3.org/ns/ldt#template' \ -| grep 'Link: <https://www.w3.org/ns/ldt/co...
bash