Added rbash-reload
This commit is contained in:
parent
3e8c61bf56
commit
223d5dfb8e
@ -137,12 +137,24 @@ function rbash_load {
|
|||||||
echo "Load: $1"
|
echo "Load: $1"
|
||||||
f=`rbash_cache "$RBASH_REMOTE/$RBASH_REPO/raw/branch/master/$RBASH_PATH/$1"`
|
f=`rbash_cache "$RBASH_REMOTE/$RBASH_REPO/raw/branch/master/$RBASH_PATH/$1"`
|
||||||
source "$f"
|
source "$f"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
echo "echo \"Load: $1\"" >> "$RBASH_MERGED"
|
echo "echo \"Load: $1\"" >> "$RBASH_MERGED"
|
||||||
cat "$f" >> "$RBASH_SOURCES/merged"
|
cat "$f" >> "$RBASH_SOURCES/merged"
|
||||||
|
else
|
||||||
|
echo "echo \"Skipped: $1\". Use rbash-reload to try load this again." >> "$RBASH_MERGED"
|
||||||
|
fi
|
||||||
|
|
||||||
chmod 700 "$RBASH_MERGED"
|
chmod 700 "$RBASH_MERGED"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function rbash-reload {
|
||||||
|
_RBASH_LOADED=
|
||||||
|
_RBASH_MERGE_START=1
|
||||||
|
rm -f "$RBASH_SOURCES/merged"
|
||||||
|
source "$RBASH_CONFIG"
|
||||||
|
_RBASH_MERGE_START=
|
||||||
|
}
|
||||||
|
|
||||||
function rbash-upgrade {
|
function rbash-upgrade {
|
||||||
echo "Updating $__SCRIPT"
|
echo "Updating $__SCRIPT"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user