aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/_ak_fs2
-rwxr-xr-xlib/_ak_ns2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/_ak_fs b/lib/_ak_fs
index bdb045f..07929b6 100755
--- a/lib/_ak_fs
+++ b/lib/_ak_fs
@@ -118,7 +118,7 @@ function _ak_fs_import(){
map="$(basename $( echo $hashgrep | cut -d ':' -f 1 ))"
_ak_log_error "File $1 found @ $map"
echo $map
- exit 1
+ exit 0
fi
_ak_log_info "Encoding to base64"
base64 $1 > file
diff --git a/lib/_ak_ns b/lib/_ak_ns
index 476ea1c..3506908 100755
--- a/lib/_ak_ns
+++ b/lib/_ak_ns
@@ -312,7 +312,7 @@ function _ak_ns_resolve_all_keys(){
do
cat keymaps_list.$ip | jq -r '.fingerprint' | while read key
do
- map="$(cat keymaps | jq -r 'select(.fingerprint == "'$key'")|.map')"
+ map="$(cat keymaps_list.$ip | jq -r 'select(.fingerprint == "'$key'")|.map')"
ak fs --net-cat-from-map $map > $key
ak fs --import $key
curl -s http://[$ip]:8610/v0/ns_get/$key > $key.reply