Skip to content

Commit

Permalink
Actually fix script_dir statements
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Jan 5, 2024
1 parent a9711ce commit d24c77b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/bin/ratos
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
BIN_LOCATION=$(realpath "$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"/ratos)
SCRIPT_DIR=$(dirname "$BIN_LOCATION")
SCRIPT_DIR=$( cd -- "$( dirname -- "$(realpath -- "${BASH_SOURCE[0]}")" )" &> /dev/null && pwd )
RATOS_BIN_CWD=$(pwd)
export RATOS_BIN_CWD
pnpm run --silent -C "$SCRIPT_DIR"/.. cli "$@"
Expand Down
4 changes: 2 additions & 2 deletions src/cli/components/status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const Status: React.FC<StatusProps> = (props) => {
return (
<Box flexDirection="column">
{hasError ? <Text color="red">Error!</Text> : <Text color="green">Success!</Text>}
{results.map(({ message, result }) => (
<Box key={message}>
{results.map(({ message, result }, i) => (
<Box key={i}>
{result === 'success' ? (
<Text color="green" bold={true}>
{' '}
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/post-merge.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
SCRIPT_DIR=$(realpath "$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )")
SCRIPT_DIR=$( cd -- "$( dirname -- "$(realpath -- "${BASH_SOURCE[0]}")" )" &> /dev/null && pwd )
# Script dir is scripts
sudo "$SCRIPT_DIR"/update.sh

0 comments on commit d24c77b

Please sign in to comment.