mirror of
https://github.com/LamGC/quickly-conf-sshd.git
synced 2025-04-29 14:17:32 +00:00
Revert "fix: 修复潜在的 Shell 符号解析问题."
撤销这个愚蠢的改动。 (脑子抽风了hhhhh)
This commit is contained in:
parent
b01cb6ff36
commit
04dfccd6bc
@ -197,7 +197,7 @@ if [ $(has_param "-c" "--cron") == "true" ]; then
|
|||||||
echo "Install conf-sshd script successfully."
|
echo "Install conf-sshd script successfully."
|
||||||
# 将当前脚本追加到当前用户的 Crontab 中
|
# 将当前脚本追加到当前用户的 Crontab 中
|
||||||
crontab -l > ~/.conf-sshd/crontab.old
|
crontab -l > ~/.conf-sshd/crontab.old
|
||||||
echo '$cron "/bin/bash ~/.conf-sshd/conf-sshd.sh -o" >> ~/.conf-sshd/run.log' >> ~/.conf-sshd/crontab.old
|
echo "$cron \"/bin/bash ~/.conf-sshd/conf-sshd.sh -o\" >> ~/.conf-sshd/run.log" >> ~/.conf-sshd/crontab.old
|
||||||
crontab ~/.conf-sshd/crontab.old
|
crontab ~/.conf-sshd/crontab.old
|
||||||
rm ~/.conf-sshd/crontab.old
|
rm ~/.conf-sshd/crontab.old
|
||||||
echo "Crontab has been configured.(Cron: '$cron')"
|
echo "Crontab has been configured.(Cron: '$cron')"
|
||||||
|
Loading…
Reference in New Issue
Block a user