From 879a969f470dbdbc04d1bed6bf138c2bc6638ef1 Mon Sep 17 00:00:00 2001 From: starcalc Date: Tue, 8 Mar 2022 20:25:59 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Epiconfig/readonly.sh=E2=80=9C=20=C3=A4?= =?UTF-8?q?ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You disable the default-behavior of variable expansion by quoting the label (with single or double quotes). --- piconfig/readonly.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piconfig/readonly.sh b/piconfig/readonly.sh index 3ac9af0..e0c5244 100644 --- a/piconfig/readonly.sh +++ b/piconfig/readonly.sh @@ -22,7 +22,7 @@ tmpfs /var/log tmpfs nosuid,nodev 0 0 tmpfs /var/tmp tmpfs nosuid,nodev 0 0 EOT -sudo cat <>/etc/bash.bashrc +sudo cat <<"EOT" >>/etc/bash.bashrc # set variable identifying the filesystem you work in (used in the prompt below) set_bash_prompt(){ fs_mode=$(mount | sed -n -e "s/^\/dev\/.* on \/ .*(\(r[w|o]\).*/\1/p")