dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 31c87ed71436044ba1abe2c56c7f63e66c023701
parent ce22db8c36ec018eaafdeee7edc2ec9d33fdf014
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon,  1 May 2017 23:48:06 +0000

.bin/php5: Update script name construction.

Diffstat:
.bin/php5 | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.bin/php5 b/.bin/php5 @@ -5,11 +5,10 @@ # # systemd-nspawn container for php5 -PWD=`pwd` CONTAINER_DIR=$HOME'/.containers' CONTAINER_NAME='php5' CONTAINER=$CONTAINER_DIR'/'$CONTAINER_NAME -SCRIPT=`basename "$0"` +SCRIPT=`which "$0"` TERMINFO_SRC='/usr/share/terminfo/r/rxvt-256color:' TERMINFO_BIND=$TERMINFO_SRC'/root/.terminfo/r/rxvt-256color' @@ -24,7 +23,7 @@ if [ "$1" = "bootstrap" ]; then echo 'debootstrap' sudo debootstrap --arch=amd64 jessie $CONTAINER sudo systemd-nspawn -D ./$CONTAINER \ - --bind-ro=$PWD/$SCRIPT:/root/$SCRIPT \ + --bind-ro=$SCRIPT:/root/$SCRIPT \ /root/$SCRIPT install elif [ "$1" = "install" ]; then # this is run inside the container