dotfiles

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

commit cfe2797795ee3166ea9bb2e6ca2f7f583548a4fe
parent 0b9bdc380a7d9ccf9e5e8cdcb5ffdf9fd7a17d25
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon,  1 May 2017 23:46:59 +0000

.bin/anki: Update script name construction.

Diffstat:
.bin/anki | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/.bin/anki b/.bin/anki @@ -5,11 +5,10 @@ # # systemd-nspawn container for anki -PWD=`pwd` CONTAINER_DIR=$HOME'/.containers' CONTAINER_NAME='anki' 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' @@ -22,7 +21,7 @@ if [ "$1" = "bootstrap" ]; then sudo debootstrap --arch=amd64 testing $CONTAINER echo 'starting container' sudo systemd-nspawn -D ./$CONTAINER \ - --bind-ro=$PWD/$SCRIPT:/root/$SCRIPT \ + --bind-ro=$SCRIPT:/root/$SCRIPT \ /root/$SCRIPT install elif [ "$1" = "install" ]; then echo 'installing paraphernalia in container' @@ -44,7 +43,7 @@ elif [ "$1" = "start-container" ]; then --setenv=XAUTHORITY=~/.Xauthority \ --bind=/tmp/ \ --bind=/home/s/.Xauthority:/root/.Xauthority \ - --bind-ro=$PWD/$SCRIPT:/root/$SCRIPT \ + --bind-ro=$SCRIPT:/root/$SCRIPT \ --bind-ro=$TERMINFO_BIND elif [ "$1" = "start-anki" ]; then echo 'starting anki in container' @@ -54,7 +53,7 @@ elif [ "$1" = "start-anki" ]; then --setenv=XAUTHORITY=~/.Xauthority \ --bind=/tmp/ \ --bind=/home/s/.Xauthority:/root/.Xauthority \ - --bind-ro=$PWD/$SCRIPT:/root/$SCRIPT \ + --bind-ro=$SCRIPT:/root/$SCRIPT \ /root/$SCRIPT run-anki annex-anki elif [ "$1" = "run-anki" ]; then