fix: source bashrc after writing to it instead of exporting again in shell
This commit is contained in:
parent
755b17d5ec
commit
d0846b5c3b
@ -73,12 +73,11 @@ $STD chmod +x /opt/ente/cli/dist/ente
|
|||||||
msg_ok "Downloaded Ente CLI"
|
msg_ok "Downloaded Ente CLI"
|
||||||
|
|
||||||
msg_info "Configuring Ente CLI"
|
msg_info "Configuring Ente CLI"
|
||||||
$STD export ENTE_CLI_SECRETS_PATH=/opt/ente/cli/dist/secrets.txt
|
|
||||||
$STD export PATH="/opt/ente/cli/dist:$PATH"
|
|
||||||
cat <<EOF >>~/.bashrc
|
cat <<EOF >>~/.bashrc
|
||||||
export ENTE_CLI_SECRETS_PATH=/opt/ente/cli/dist/secrets.txt
|
export ENTE_CLI_SECRETS_PATH=/opt/ente/cli/dist/secrets.txt
|
||||||
export PATH="/opt/ente/cli/dist:$PATH"
|
export PATH="/opt/ente/cli/dist:$PATH"
|
||||||
EOF
|
EOF
|
||||||
|
$STD source ~/.bashrc
|
||||||
$STD rm ~/.ente
|
$STD rm ~/.ente
|
||||||
$STD mkdir -p ~/.ente
|
$STD mkdir -p ~/.ente
|
||||||
cat <<EOF >~/.ente/config.yaml
|
cat <<EOF >~/.ente/config.yaml
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user