aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/init
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydra/init')
-rwxr-xr-xshare/hydra/init3
1 files changed, 1 insertions, 2 deletions
diff --git a/share/hydra/init b/share/hydra/init
index c68b562..7b6d348 100755
--- a/share/hydra/init
+++ b/share/hydra/init
@@ -29,7 +29,7 @@ if [ -z "$BASEDIR" ]; then
echo "Usage: hydra [hydra] init <path> [remote]"
exit 1
elif grep -q -e "^$HYDRA=" $CONFIG &> /dev/null; then
- echo "Hydra $HYDRA already defined"
+ echo "Hydra $HYDRA already registered"
exit 1
elif [ -d "$BASEDIR" ]; then
echo "Folder $BASEDIR already exists, hydra $HYDRA already defined?"
@@ -44,7 +44,6 @@ BASEDIR="`cd $BASEDIR && pwd`"
# Add entry
echo "Registering hydra $HYDRA..."
-mkdir -p $BASEDIR
chmod 700 $BASEDIR
echo "$HYDRA=\"$BASEDIR\"" >> $CONFIG