dot

packages and services management
Log | Files | Refs | README

commit f53d8fdd971b30fcc2de526955b47858f95e1036
parent ac31e8879954116c3c04ca9a704f4d481206ce1f
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 21 Nov 2017 14:39:43 +0100

create a source directory if non existant

Diffstat:
Mbin/etc | 1-
Mbin/package | 2++
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/etc b/bin/etc @@ -17,7 +17,6 @@ case $1 in ;; (mkdir) mkdir -p "$HOME/src" - mkdir -p "$HOME/git" mkdir -p "$HOME/tmp" mkdir -p "$HOME/var/irc" mkdir -p "$HOME/var/log" diff --git a/bin/package b/bin/package @@ -29,6 +29,8 @@ case "$1" in git clone "$url" "$SRC" || exit 1 ;; (get) + mkdir -p "$HOME/.local/src" + if [ -f "$PKG/tar" ] then "$0" tar "$2" && exit 0 elif [ -f "$PKG/git" ]