summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-23 23:04:33 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-23 23:04:33 +0000
commita55338d37e3f3ef1b3e5d182d58bbd9965f2660b (patch)
tree0657d1a97963a0921f4abd6bf89801ac44a8c1da /contrib
parent389e869325e475a3a0f016c32611c5d10049b07b (diff)
-fixes
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/gnunet-gns-import.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/gnunet-gns-import.sh b/contrib/gnunet-gns-import.sh
index abe1c5936..0ad3ab1d2 100755
--- a/contrib/gnunet-gns-import.sh
+++ b/contrib/gnunet-gns-import.sh
@@ -62,23 +62,23 @@ PRIVATE=`gnunet-identity -d $options | grep private-zone | awk '{print $3}'`
PIN=72QC35CO20UJN1E91KPJFNT9TG4CLKAPB4VK9S3Q758S9MLBRKOG
# Link short and private zones into master zone
-if (gnunet-namestore -z master-zone -D -n private -t PKEY | grep "PKEY: $PRIVATE" &>/dev/null)
+if (gnunet-namestore -z master-zone -D -n private -t PKEY | grep "PKEY: $PRIVATE" 1>/dev/null)
then
- :
+ echo "Private zone link exists, skipping"
else
gnunet-namestore -z master-zone -a -e never -n private -p -t PKEY -V $PRIVATE $options
fi
-if (gnunet-namestore -z master-zone -D -n short -t PKEY | grep "PKEY: $SHORT" &>/dev/null)
+if (gnunet-namestore -z master-zone -D -n short -t PKEY | grep "PKEY: $SHORT" 1>/dev/null)
then
- :
+ echo "Shorten zone link exists, skipping"
else
gnunet-namestore -z master-zone -a -e never -n short -p -t PKEY -V $SHORT $options
fi
# Link GNUnet's FCFS zone into master zone under label "pin"
-if (gnunet-namestore -z master-zone -D -n pin -t PKEY | grep "PKEY: $PIN" &>/dev/null)
+if (gnunet-namestore -z master-zone -D -n pin -t PKEY | grep "PKEY: $PIN" 1>/dev/null)
then
- :
+ echo "Pin zone link exists, skipping"
else
gnunet-namestore -z master-zone -a -e never -n pin -p -t PKEY -V $PIN $options
fi