aboutsummaryrefslogtreecommitdiff
path: root/metadot
diff options
context:
space:
mode:
Diffstat (limited to 'metadot')
-rwxr-xr-xmetadot19
1 files changed, 15 insertions, 4 deletions
diff --git a/metadot b/metadot
index 900e15f..f2bb2d7 100755
--- a/metadot
+++ b/metadot
@@ -66,9 +66,6 @@ function metadot_load {
ln -s $MODULES/$module/$file $HOME/$dirname/$destname
done
-
- echo "Backups saved at $BACKUPS."
-
else
echo "No such module $module"
fi
@@ -82,5 +79,19 @@ elif [ "$OPT" == "update" ]; then
( cd $DOT && git pull origin master && git submodule update --init )
elif [ "$OPT" == "load" ]; then
shift
- metadot_load $*
+
+ if [ -z "$1" ]; then
+ echo "usage: $BASENAME load [module(s)|--all]"
+ fi
+
+ if [ "$1" == "--all" ]; then
+ modules="`ls $MODULES`"
+ else
+ modules="$*"
+ fi
+
+ for module in $modules; do
+ metadot_load $module
+ done
+ echo "Backups saved at $BACKUPS."
fi