usr

Modulate your userpace into POSIX-compliant shell scripts!
git clone git://clone.theohenson.com/usr.git
Log | Files | Refs | README

commit bd6ebb9b43f866dbef943bf5c42143d0da6a7beb
parent 23ebd4dcd0743df1afade99cb5a1666c6da28826
Author: Theo Henson <[email protected]>
Date:   Sun, 15 Nov 2020 16:58:50 -0500

Improve modules, improve prep_modules

Diffstat:
Mmodules/theo_scripts.mod.sh | 4++++
Musr | 4++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/theo_scripts.mod.sh b/modules/theo_scripts.mod.sh @@ -1,6 +1,10 @@ # theo_scripts module theo_scripts_add() { + printf "theo_scripts: chmoding scripts\n" + for SCRIPT in $(theo_scripts_files) ; do + chmod +x "$USR_DIR/home/$SCRIPT" + done printf "theo_scripts: linking %s/.local/bin/opt\n" "$HOME" ln -sf "$USR_DIR"/home/.local/bin/opt "$HOME"/.local/bin/opt } diff --git a/usr b/usr @@ -138,8 +138,8 @@ prep_module() { fi done - if [ $COUNT -ne $("$MOD"_files | wc -w) ] ; then - printf "usr: waiting for curl jobs to finish [%s/%s]" "$COUNT" $("$MOD"_files | wc -w) + if [ "$COUNT" -ne $("$MOD"_files | wc -w) ] ; then + printf "usr: waiting for curl jobs to finish [%s/%s]\n" "$COUNT" $("$MOD"_files | wc -w) sleep 0.5 else break