Skip to content

Commit 6e613f4

Browse files
correct echo message in index creation script
1 parent 3828e03 commit 6e613f4

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ hooks:
3636
# Write-Host "Run the following command in the terminal to run the scripts: "
3737
# Write-Host "$env:createindex" -ForegroundColor Cyan
3838
Write-Host "`nIf you want to use the Sample Data, run the following command in the Bash terminal to process it:"
39-
Write-Host "./infra/scripts/process_sample_data.sh $env:STORAGE_ACCOUNT_NAME $env:STORAGE_CONTAINER_NAME $env:KEY_VAULT_NAME" -ForegroundColor Cyan
39+
Write-Host "bash ./infra/scripts/process_sample_data.sh $env:STORAGE_ACCOUNT_NAME $env:STORAGE_CONTAINER_NAME $env:KEY_VAULT_NAME" -ForegroundColor Cyan
4040
shell: pwsh
4141
continueOnError: false
4242
interactive: true
@@ -50,7 +50,7 @@ hooks:
5050
# echo $createindex
5151
echo ""
5252
echo "If you want to use the Sample Data, run the following command in the terminal to process it:"
53-
echo "./infra/scripts/process_sample_data.sh $env:STORAGE_ACCOUNT_NAME $env:STORAGE_CONTAINER_NAME $env:KEY_VAULT_NAME" -ForegroundColor Cyan
53+
echo "bash ./infra/scripts/process_sample_data.sh $STORAGE_ACCOUNT_NAME $STORAGE_CONTAINER_NAME $KEY_VAULT_NAME"
5454
shell: sh
5555
continueOnError: false
5656
interactive: true

infra/scripts/run_create_index_scripts.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,22 @@ fi
4747

4848

4949
# create virtual environment
50-
echo "Creating virtual environment"
5150
# Check if the virtual environment already exists
5251
if [ -d "infra/scripts/scriptenv" ]; then
5352
echo "Virtual environment already exists. Skipping creation."
5453
else
5554
echo "Creating virtual environment"
5655
python3 -m venv infra/scripts/scriptenv
5756
fi
58-
source infra/scripts/scriptenv/Scripts/activate
57+
source infra/scripts/scriptenv/bin/activate
5958

6059
# Install the requirements
6160
echo "Installing requirements"
6261
pip install -r infra/scripts/index_scripts/requirements.txt
6362
echo "Requirements installed"
6463

6564
# Run the scripts
66-
echo "Running the pyhton scripts"
65+
echo "Running the python scripts"
6766
echo "Creating the search index"
6867
python infra/scripts/index_scripts/01_create_search_index.py
6968
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)