From 8919c8d9437719405a2ddb3554020dd84c009fa1 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 22 Jul 2025 06:28:13 +0300 Subject: [ns] bugfix --- lib/_ak_fs | 2 +- lib/_ak_ns | 2 +- 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 -- cgit v1.2.3