X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tinyos.sh;h=a41c7e53cc263101d96660a28d99b0023e460178;hb=refs%2Fheads%2Frelease%2F2.1.0;hp=71b0960934764d45f9695482f830f9b1896d93f7;hpb=863e42871047e90af1ab14b319e1c51e2f471774;p=tinyos-2.x.git diff --git a/tinyos.sh b/tinyos.sh index 71b09609..a41c7e53 100644 --- a/tinyos.sh +++ b/tinyos.sh @@ -5,7 +5,7 @@ # and may source again at any time to change which installed TinyOS source # tree their code shall be built against. -TOSCFG=~/.tosrc +TOSCFG="$HOME/.tosrc" TOSBASE=/opt/tinyos RCFILES="$HOME/.bashrc $HOME/.shrc $HOME/.kshrc $HOME/.cshrc $ENV" @@ -101,7 +101,7 @@ elif [ "$(basename -- $0)" = tinyos.sh ]; then # Operations below here cannot be executed in a sub-shell echo "tinyos: must be sourced" elif [ "$1" = "-u" ]; then - if [ -f $TOSCFG ]; then + if [ -f "$TOSCFG" ]; then uninstallshrc updclasspath "$TOSROOT" "" unset TOSROOT TOSDIR MAKERULES