change === and >>> to ::*** and ***::

This commit is contained in:
Luk
2024-12-21 15:01:18 +08:00
parent c063e02f1e
commit edb1f40cf1
51 changed files with 285 additions and 299 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