Skip to content

Commit

Permalink
fix shebang lines of all install.bash files
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Apr 2, 2019
1 parent 467331b commit b5932cd
Show file tree
Hide file tree
Showing 47 changed files with 76 additions and 24 deletions.
1 change: 1 addition & 0 deletions amigo1/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /usr/bin/env bash

## Chrony
# If config file does not exist, chrony is probably not installed
if [ ! -f /etc/chrony/chrony.conf ]
Expand Down
2 changes: 2 additions & 0 deletions audio/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

sudo adduser amigo audio
sudo adduser amigo pulse
sudo adduser amigo pulse-access
Expand Down
2 changes: 1 addition & 1 deletion bower/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

if ! hash bower &> /dev/null
then
Expand Down
4 changes: 2 additions & 2 deletions chrome-dev/install.bash
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
#! /usr/bin/env bash

if [ ! -f /etc/apt/sources.list.d/google-chrome.list ]
then
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
fi
Expand Down
4 changes: 2 additions & 2 deletions chrome/install.bash
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
#! /usr/bin/env bash

if [ ! -f /etc/apt/sources.list.d/google-chrome.list ]
then
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
fi
Expand Down
2 changes: 1 addition & 1 deletion cmdgen/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

github_url="https://github.com/tue-robotics/GPSRCmdGen.git"

Expand Down
2 changes: 2 additions & 0 deletions cuda/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

ubuntu_version=$(lsb_release -rs)
ubuntu_version="${ubuntu_version//./}"
cuda_version="9.2.148-1"
Expand Down
2 changes: 2 additions & 0 deletions docker/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ ! -f /etc/apt/sources.list.d/docker.list ]
then
wget https://get.docker.com -O /tmp/docker-install && sudo sh /tmp/docker-install
Expand Down
2 changes: 1 addition & 1 deletion dropbox/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

if [ ! -f /etc/apt/sources.list.d/dropbox.list ]
then
Expand Down
2 changes: 2 additions & 0 deletions gazebo/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ ! -f /etc/apt/sources.list.d/gazebo-latest.list ]
then
# Setup your computer to accept software from packages.osrfoundation.org.
Expand Down
2 changes: 2 additions & 0 deletions gazebo_models/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [[ -n "$CI" ]]
then
# Skip this target in CI. As models aren't used, but takes a lot of time to download them.
Expand Down
1 change: 1 addition & 0 deletions git-hooks/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /usr/bin/env bash

# install the global hooks
git config --global core.hooksPath $(dirname "${BASH_SOURCE[0]}")/git_hooks/

Expand Down
2 changes: 1 addition & 1 deletion git/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

# check for git-extras
if [ ! -f /usr/local/bin/git-extras ]
Expand Down
2 changes: 1 addition & 1 deletion grunt/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

if ! hash grunt &> /dev/null
then
Expand Down
2 changes: 1 addition & 1 deletion hero-chrony-client-pc/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Chrony
#! /usr/bin/env bash
set -e

# If config file does not exist, chrony is probably not installed
Expand Down
2 changes: 2 additions & 0 deletions hero1/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

## Chrony
# If config file does not exist, chrony is probably not installed
if [ ! -f /etc/chrony/chrony.conf ]
Expand Down
2 changes: 1 addition & 1 deletion hosts/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

sed s/hostname/$(hostname)/g $TUE_INSTALL_CURRENT_TARGET_DIR/hosts > /tmp/hosts
if ! cmp /tmp/hosts /etc/hosts
Expand Down
4 changes: 3 additions & 1 deletion jenkins/install.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#! /usr/bin/env bash

if [ -f ! /etc/apt/sources.list.d/jenkins.list ]
then

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
Expand Down
2 changes: 1 addition & 1 deletion kaldi/install.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env bash
#

# Bash script to install target kaldi

# Clone kaldi fork from tue-robotics (only latest commit)
Expand Down
2 changes: 2 additions & 0 deletions libsiftfast/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ ! -f /usr/local/lib/libsiftfast.so ]
then
svn co http://svn.code.sf.net/p/libsift/code/trunk /tmp/libsiftfast
Expand Down
2 changes: 2 additions & 0 deletions megasync/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

DATA_DIR="$HOME/MEGA"
if [ ! -d "$DATA_DIR" ]; then
# Download mega sync
Expand Down
2 changes: 2 additions & 0 deletions megatools/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

# Get script dir
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

Expand Down
2 changes: 2 additions & 0 deletions nanomsg/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ ! -f /usr/local/lib/libnanomsg.so.0.2.1 ]
then
wget http://download.nanomsg.org/nanomsg-0.5-beta.tar.gz -O /tmp/nanomsg-0.5-beta.tar.gz
Expand Down
2 changes: 2 additions & 0 deletions networking/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

# Install config file (mdns4_minimal is normally missing and should be present)

# Replace nsswitch config file
Expand Down
2 changes: 1 addition & 1 deletion nodejs/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

if [ ! -f /etc/apt/sources.list.d/nodesource.list ]
then
Expand Down
2 changes: 2 additions & 0 deletions openface/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ ! -d ~/openface ]; then
pushd .
mkdir ~/openface
Expand Down
2 changes: 1 addition & 1 deletion openpose/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
set -e

function echo_and_run() { echo "$@" ; "$@" ; }
Expand Down
2 changes: 2 additions & 0 deletions pico/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ ! -f /etc/udev/rules.d/99-arduino-usb.rules ]
then
sudo tue-install-cp udev-rules/* /etc/udev/rules.d/
Expand Down
2 changes: 1 addition & 1 deletion pycharm/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

pycharm="pycharm-community"
if dpkg-query -W -f='${Status}' $pycharm 2>/dev/null | grep -q "ok installed"
Expand Down
4 changes: 2 additions & 2 deletions python-sip/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

local SIP_version="4.15.5"

Expand Down Expand Up @@ -26,7 +26,7 @@ else
tue-install-error "Download $url and place it in $(dirname "${BASH_SOURCE[0]}")/"
return -1
fi

tue-install-info "Installing SIP version: $SIP_version"
cp $SIP_file /tmp/sip.tar.gz

Expand Down
2 changes: 2 additions & 0 deletions python-tensorflow-pip/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ -n "$TUE_CUDA" ]
then
tue-install-pip 'tensorflow-gpu>=1.7.0'
Expand Down
2 changes: 2 additions & 0 deletions qtcreator/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

DIRECTORY='/opt/Qt'
if [ ! -d "$DIRECTORY" ]; then
wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run -O /tmp/qt-open-source-installer
Expand Down
2 changes: 2 additions & 0 deletions robot/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

### Make sure remote launching works ###
tue-install-cp ros-bash-and-run.sh ~/.ros-bash-and-run.sh
chmod +x ~/.ros-bash-and-run.sh
Expand Down
2 changes: 1 addition & 1 deletion ros-dashboard/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
set -e

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand Down
2 changes: 2 additions & 0 deletions ros-image_recognition_keras/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

url="https://github.com/yu4u/age-gender-estimation/releases/download/v0.5/weights.28-3.73.hdf5"
old_dest=~/src/keras_models/age_gender
dest=~/data/keras_models/age_gender
Expand Down
2 changes: 2 additions & 0 deletions ros-soem_master/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

SUDO_PAM_LIMITS="session required pam_limits.so"
PAM_SUDO_FILE="/etc/pam.d/sudo"

Expand Down
2 changes: 1 addition & 1 deletion ros/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

if [ -z "$TUE_ROS_DISTRO" ]
then
Expand Down
2 changes: 2 additions & 0 deletions sdfformat/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ ! -f /etc/apt/sources.list.d/gazebo-stable.list ]
then
tue-install-debug "Adding Gazebo source to apt-get"
Expand Down
1 change: 1 addition & 0 deletions sergio1/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /usr/bin/env bash

## Chrony
# If config file does not exist, chrony is probably not installed
if [ ! -f /etc/chrony/chrony.conf ]
Expand Down
2 changes: 1 addition & 1 deletion spot/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

if [ ! -f /usr/local/bin/spot ]
then
Expand Down
2 changes: 2 additions & 0 deletions terminator/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ ! -d ~/.config/terminator ]
then
tue-install-debug "creating ~/.config/terminator, because not existing yet"
Expand Down
4 changes: 3 additions & 1 deletion thespeechmachine/install.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#! /usr/bin/env bash

# Install vbox if not installed
if ! dpkg -s virtualbox-4.3 &> /dev/null
then
then
URL='http://download.virtualbox.org/virtualbox/4.3.20/virtualbox-4.3_4.3.20-96996~Ubuntu~precise_amd64.deb'; FILE=`mktemp`; wget "$URL" -qO $FILE && sudo dpkg -i $FILE; rm $FILE
fi

Expand Down
1 change: 1 addition & 0 deletions tue-all/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /usr/bin/env bash

targets=$(ls $TUE_ENV_TARGETS_DIR)
for target in $targets
do
Expand Down
2 changes: 2 additions & 0 deletions tue-common/install.bash
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#! /usr/bin/env bash

tue-install-cp rsettings_file $TUE_DIR/.rsettings
2 changes: 1 addition & 1 deletion vscode/install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash

if [ ! -f /etc/apt/sources.list.d/vscode.list ]
then
Expand Down
2 changes: 1 addition & 1 deletion wireshark/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#! /usr/bin/env bash

sudo dpkg-reconfigure wireshark-common
2 changes: 2 additions & 0 deletions zeromq/install.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /usr/bin/env bash

if [ ! -f /usr/local/lib/libzmq.so.4 ]
then
wget http://download.zeromq.org/zeromq-4.1.0-rc1.tar.gz -O /tmp/zeromq-4.1.0-rc1.tar.gz
Expand Down

0 comments on commit b5932cd

Please sign in to comment.