]> git.madduck.net Git - etc/mrsetup.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

reset -e and simplify suicide
authormartin f. krafft <madduck@madduck.net>
Sat, 10 May 2008 00:55:23 +0000 (01:55 +0100)
committermartin f. krafft <madduck@madduck.net>
Sat, 10 May 2008 00:55:23 +0000 (01:55 +0100)
mrsetup

diff --git a/mrsetup b/mrsetup
index 275ec3a455f7a7195139da9bd2060d2a718e943e..61380437207e74a0c33f0dabe9762ca8b6e43df0 100755 (executable)
--- a/mrsetup
+++ b/mrsetup
@@ -5,7 +5,7 @@
 # Copyright © 2008 martin f. krafft <madduck@madduck.net>
 # Released under the terms of the Artistic Licence 2.0
 #
 # Copyright © 2008 martin f. krafft <madduck@madduck.net>
 # Released under the terms of the Artistic Licence 2.0
 #
-set -u
+set -eu
 
 MY_GIT_SERVER=git.madduck.net
 MY_GIT_REPOS='~/git'
 
 MY_GIT_SERVER=git.madduck.net
 MY_GIT_REPOS='~/git'
@@ -104,7 +104,7 @@ else
   echo
 fi
 
   echo
 fi
 
-[ -f "$0" ] && rm $0 || :
+rm -f "$0"
 
 echo I: spawning a shell...
 $SHELL --interactive --login
 
 echo I: spawning a shell...
 $SHELL --interactive --login