change "echo ===" to "echo #<<<" to avoid confusing when searching for ===

This commit is contained in:
Luk
2024-12-13 20:09:17 +08:00
parent 4f1b5809e0
commit c063e02f1e
58 changed files with 328 additions and 265 deletions

View File

@@ -2,8 +2,8 @@ if [ $1 ]
then
NewHostname=$1
else
echo "=== Set [new hostname] or [leave blank] for no change"
read -p ">>> " NewHostname
echo "#<<< Set [new hostname] or [leave blank] for no change"
read -p "#>>> " NewHostname
fi
if [ $NewHostname ]
@@ -11,6 +11,6 @@ then
hostnamectl set-hostname $NewHostname
sed -i "s|\b$`hostname`\b|$NewHostname|g" /etc/hosts # echo "127.0.0.1 $NewHostname" >> /etc/hosts
else
echo 'Nothing changed >>>'
echo 'Nothing changed #>>>'
fi
echo