various fixes
authorIan Kelling <ian@iankelling.org>
Fri, 27 Jan 2017 05:07:19 +0000 (21:07 -0800)
committerIan Kelling <ian@iankelling.org>
Fri, 27 Jan 2017 05:07:19 +0000 (21:07 -0800)
emacs
tor-browser
update-builds

diff --git a/emacs b/emacs
index 62cfc31c9f392f2b4d4a7f5ce40008d1cc0f1c58..abab8652212101d186b9a79d5d9cc33b3397c7ba 100755 (executable)
--- a/emacs
+++ b/emacs
@@ -125,7 +125,7 @@ logq emacs --batch -l ~/.emacs.d/init.el -l ~/.emacs.d/compile-init-dir.el
 
 # as of 01-2017, built-in org mode has a bug that
 # org-edit-src-exit does not get bound, so using latest
-~/bin/buildscripts/org-mode
+/a/bin/buildscripts/org-mode
 
 if $update; then
     logq pi bzr
index 2c46a67161a05d29efb78556a04e83fb4c762539..1fcbcb87f35ec42fbac9ccca1d1b297e81b76917 100755 (executable)
@@ -21,7 +21,7 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
 # https://dist.torproject.org/torbrowser/
 
 ver=$(curl -s https://dist.torproject.org/torbrowser/ \
-          | sed -rn 's/.*href="([0-9]+\.[0-9]+\.[0-9]+).*/\1/p' \
+          | sed -rn 's/.*href="([0-9]+\.[0-9]+).*/\1/p' \
           | sort -Vr | head -n 1)
 
 
index b2c71d4e5efff5ef0a4159eb2db30d1e47b50b87..091ee60cdf7780fcd6e5864b49b1c33bbc9d1653 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 
-cd "${BASH_SOURCE%/*}" # directory of the script
+x="$(readlink -f "$BASH_SOURCE")"; cd ${x%/*}
 for x in *; do
     if [[ $x == update-builds || ! -x $x || -d $x ]]; then
         continue