dot

packages and services management
Log | Files | Refs | README

commit 77e4fee1dff1d4ba2ef07b98f0a5b0ecc3b39297
parent 5c98e808ff955ec70116132fe22eb25c6bd39865
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 15 Jan 2018 11:36:43 +0100

less error message for mv-sane

Diffstat:
Mbin/mv-sane | 10+++++-----
Apack/minilisp/build | 7+++++++
Apack/minilisp/git | 1+
3 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/bin/mv-sane b/bin/mv-sane @@ -1,10 +1,10 @@ #!/bin/sh -# Remove evil characters +# remove evil characters find . -mindepth 1 | while IFS='' read -r path do - - mv "$path" "$(dirname "$path")/$(basename "$path" | - tr '\t #&;*?<>|"()[]{}\\-=+'\' _ | - sed -e 's/__*/_/g' -e 's/^_//' -e 's/_$//')" + new=$(dirname "$path")/$(basename "$path" | + tr '\t #&;*?<>|"()[]{}\\-=+'\' _ | + sed -e 's/__*/_/g' -e 's/^_//' -e 's/_$//') + [ "$new" = "$path" ] || mv "$path" "$new" done diff --git a/pack/minilisp/build b/pack/minilisp/build @@ -0,0 +1,7 @@ +#!/bin/sh -e + +make + +mkdir -p "$OPT/bin" + +cp minilisp "$OPT/bin" diff --git a/pack/minilisp/git b/pack/minilisp/git @@ -0,0 +1 @@ +git://github.com/rui314/minilisp