fix: replace tilde with $HOME for consistent path usage in scripts

This commit is contained in:
Burnett01
2025-12-02 14:52:50 +00:00
parent 61419b36d6
commit e0b7fb752e
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
set -euo pipefail
printf '%s\n' "$@" >> ~/.ssh/known_hosts
printf '%s\n' "$@" >> $HOME/.ssh/known_hosts
+1 -1
View File
@@ -2,4 +2,4 @@
set -euo pipefail
truncate -s 0 ~/.ssh/known_hosts
truncate -s 0 $HOME/.ssh/known_hosts
+2 -2
View File
@@ -2,5 +2,5 @@
set -euo pipefail
touch ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts
touch $HOME/.ssh/known_hosts
chmod 600 $HOME/.ssh/known_hosts
+1 -1
View File
@@ -2,4 +2,4 @@
set -euo pipefail
mkdir -m 700 ~/.ssh
mkdir -m 700 $HOME/.ssh