Skip to content

Commit

Permalink
small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jul 11, 2024
1 parent 2c90cb4 commit 26a4a84
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 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/}"/}/' )
local string=$(echo "$data" | jq '.|tostring' |tr -d '\' | sed 's/"{/{/' | sed 's/}"/}/' 2>/dev/null)
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/}"/}/' )
local string=$(echo "$data" | jq '.|tostring' |tr -d '\' | sed 's/"{/{/' | sed 's/}"/}/' 2>/dev/null)
echo $string
}

Expand Down
2 changes: 1 addition & 1 deletion src/aws/dependencies/reverseShell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function closeSSHTunnel(){
# through which connections can be routed.
function establishSSHConnectionBeforeEstablishSSHTunnel(){
local instanceIp=$1
ssh -i /root/.ssh/$sshkey -o StrictHostKeyChecking=no root@$instanceIp 'echo hello world'
ssh -i /root/.ssh/$sshkey -o StrictHostKeyChecking=no root@$instanceIp
sleep 2
}

Expand Down
1 change: 0 additions & 1 deletion src/aws/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ function createEc2(){
--instance-type t2.micro \
--key-name $keyname \
--security-groups $groupName
--user-data file://./setupIpTables.txt
}

function findData(){
Expand Down

0 comments on commit 26a4a84

Please sign in to comment.