„piconfig/readonly.sh“ ändern

You disable the default-behavior of variable expansion by quoting the label (with single or double quotes).
This commit is contained in:
starcalc 2022-03-08 20:25:59 +00:00
parent f0988781fb
commit 879a969f47
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ tmpfs /var/log tmpfs nosuid,nodev 0 0
tmpfs /var/tmp tmpfs nosuid,nodev 0 0 tmpfs /var/tmp tmpfs nosuid,nodev 0 0
EOT EOT
sudo cat <<EOT >>/etc/bash.bashrc sudo cat <<"EOT" >>/etc/bash.bashrc
# set variable identifying the filesystem you work in (used in the prompt below) # set variable identifying the filesystem you work in (used in the prompt below)
set_bash_prompt(){ set_bash_prompt(){
fs_mode=$(mount | sed -n -e "s/^\/dev\/.* on \/ .*(\(r[w|o]\).*/\1/p") fs_mode=$(mount | sed -n -e "s/^\/dev\/.* on \/ .*(\(r[w|o]\).*/\1/p")