Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jul 11, 2024
1 parent 26a4a84 commit cbc46f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archive/jsonController.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function getBucketByBucketKey(){

function stringfy(){
local data="$1"
local string=$(echo "$data" | jq '.|tostring' |tr -d '\' | sed 's/"{/{/' | sed 's/}"/}/' 2>/dev/null)
local string=$(echo "$data" | jq '.|tostring' |tr -d '\' 2>/dev/null | sed 's/"{/{/' | sed 's/}"/}/')
echo $string
}

Expand Down
2 changes: 1 addition & 1 deletion src/aws/dependencies/jsonOperations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function merge(){

function stringfy(){
local data="$1"
local string=$(echo "$data" | jq '.|tostring' |tr -d '\' | sed 's/"{/{/' | sed 's/}"/}/' 2>/dev/null)
local string=$(echo "$data" | jq '.|tostring' |tr -d '\' 2>/dev/null | sed 's/"{/{/' | sed 's/}"/}/')
echo $string
}

Expand Down
1 change: 1 addition & 0 deletions src/aws/dependencies/reverseShell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function closeSSHTunnel(){
function establishSSHConnectionBeforeEstablishSSHTunnel(){
local instanceIp=$1
ssh -i /root/.ssh/$sshkey -o StrictHostKeyChecking=no root@$instanceIp
echo "Established SSH connection to $instanceIp"
sleep 2
}

Expand Down

0 comments on commit cbc46f1

Please sign in to comment.