cache __ns
This commit is contained in:
		@@ -67,11 +67,11 @@ export BASH_SDIR=/tmp/$BASHL_UUID
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
function __cryptd {
 | 
			
		||||
    echo "<PASSWD>" | gpg --passphrase-fd 0 -o "$2" -d "$1"
 | 
			
		||||
    echo "<PASSWD>" | gpg -q --passphrase-fd 0 -o "$2" -d "$1"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function __crypte {
 | 
			
		||||
    echo "<PASSWD>" | gpg --passphrase-fd 0 -o "$1.enc" -c "$1"
 | 
			
		||||
    echo "<PASSWD>" | gpg -q --passphrase-fd 0 -o "$1.enc" -c "$1"
 | 
			
		||||
    mv "$1.enc" "$1"
 | 
			
		||||
}
 | 
			
		||||
__CFILE=""
 | 
			
		||||
@@ -134,8 +134,10 @@ export EDITOR=vim
 | 
			
		||||
echo "Source:"
 | 
			
		||||
function __ns {
 | 
			
		||||
    echo "  $1"
 | 
			
		||||
    __cacheDownload "http://git.astropenguin.net/?p=utils.git;a=blob_plain;f=bash/bashrc/sources/$1;hb=HEAD"
 | 
			
		||||
    shift
 | 
			
		||||
    TMPFILE=/tmp/$( cat /proc/sys/kernel/random/uuid )
 | 
			
		||||
    curl -s "http://git.astropenguin.net/?p=utils.git;a=blob_plain;f=bash/bashrc/sources/$1;hb=HEAD" > $TMPFILE
 | 
			
		||||
    __cryptd "$__CFILE" "$TMPFILE"
 | 
			
		||||
    . $TMPFILE
 | 
			
		||||
    rm $TMPFILE
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user