Skip to content

Commit 1a47372

Browse files
committed
Update oci-cli.md
1 parent 2f17a3d commit 1a47372

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

content/install-guides/acfl.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ sudo ./arm-compiler-for-linux_24.10.1_Ubuntu-22.04.sh --accept
123123

124124
#### Red Hat Linux:
125125

126-
```bash { target="fedora:latest" }
126+
```console
127127
sudo yum -y install environment-modules python3 glibc-devel
128128
tar -xvf arm-compiler-for-linux_24.10.1_RHEL-9_aarch64.tar
129129
cd ./arm-compiler-for-linux_24.10.1_RHEL-9
@@ -226,19 +226,19 @@ Set up the environment, for example, in your `.bashrc` and add module files. The
226226

227227
#### Ubuntu Linux:
228228

229-
```bash { target="ubuntu:latest" }
230-
echo ". /usr/share/modules/init/bash" >> ~/.bashrc
231-
echo "module use /opt/arm/modulefiles" >> ~/.bashrc
232-
. ~/.bashrc
229+
```bash { target="ubuntu:latest" pre_cmd=". /usr/share/modules/init/bash; module use /opt/arm/modulefiles" }
230+
echo ". /usr/share/modules/init/bash" >> $HOME/.bashrc
231+
echo "module use /opt/arm/modulefiles" >> $HOME/.bashrc
232+
source $HOME/.bashrc
233233
module avail
234234
```
235235

236236
#### Red Hat or Amazon Linux:
237237

238-
```bash { target="fedora:latest" }
239-
echo ". /usr/share/Modules/init/bash" >> ~/.bashrc
240-
echo "module use /opt/arm/modulefiles" >> ~/.bashrc
241-
. ~/.bashrc
238+
```bash { target="fedora:latest" env_source="/usr/share/modules/init/bash" pre_cmd="module use /opt/arm/modulefiles" }
239+
echo ". /usr/share/Modules/init/bash" >> $HOME/.bashrc
240+
echo "module use /opt/arm/modulefiles" >> $HOME/.bashrc
241+
source $HOME/.bashrc
242242
module avail
243243
```
244244

content/install-guides/oci-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ To run an an automated install with default values run:
5353

5454
```bash { target="ubuntu:latest" }
5555
curl -o install.sh https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh
56-
bash ./install.sh --accept-all-defaults --update-path-and-enable-tab-completion --rc-file-path="$HOME/.bashrc"
56+
bash ./install.sh --accept-all-defaults --update-path-and-enable-tab-completion --rc-file-path $HOME/.bashrc
5757
```
5858

5959
To run an interactive install that allows you to change default values run:

0 commit comments

Comments
 (0)