Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/install_node_exporter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ "$ARCH" == "x86_64" ]]; then
fi

BASE_DIR="$HOME"
NODE_EXPORTER_DIR="${NODE_EXPORTER_DIR-"$BASE_DIR/.node_exporter"}"
NODE_EXPORTER_DIR="${NODE_EXPORTER_DIR:-"$BASE_DIR/.node_exporter"}"
NODE_EXPORTER_BIN_DIR="$NODE_EXPORTER_DIR/bin"
NODE_EXPORTER_BIN_PATH="$NODE_EXPORTER_BIN_DIR/node_exporter"

Expand All @@ -29,7 +29,7 @@ else
fi

echo "Extracting Node Exporter..."
if tar xvfz $FILE; then
if tar -xvzf $FILE; then
mv "node_exporter-$VERSION.$OS-$ARCH/node_exporter" "$NODE_EXPORTER_BIN_PATH"
chmod +x "$NODE_EXPORTER_BIN_PATH"
rm -rf "node_exporter-$VERSION.$OS-$ARCH" $FILE
Expand Down