Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank committed Jun 6, 2024
1 parent b982cb9 commit bbd5d06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/archival-snapshots/resources/init.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

## Enable strict error handling, command tracing, and pipefail
set -euxo pipefail
set -eux

echo "Current user: $(whoami)"

Expand Down
5 changes: 4 additions & 1 deletion ansible/archival-snapshots/resources/set_env.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash

## Enable strict error handling, command tracing, and pipefail
set -euxo pipefail

# Read the ADMIN_TOKEN from the file
ADMIN_TOKEN=$(cat admin_token)

# Set FULLNODE_API_INFO
export FULLNODE_API_INFO="$ADMIN_TOKEN:/ip4/127.0.0.1/tcp/3456/http"

# Save the environment variable to a file and source it
if echo "export FULLNODE_API_INFO=\"$FULLNODE_API_INFO\"" > /tmp/forest-archival.env && . /tmp/forest-archival.env; then
if echo "export FULLNODE_API_INFO=\"$FULLNODE_API_INFO\"" > /tmp/forest-archival.env && source /tmp/forest-archival.env; then
echo "Environment variable saved to and loaded from /tmp/forest-archival.env"
fi

Expand Down

0 comments on commit bbd5d06

Please sign in to comment.