Skip to content

Commit 99021d4

Browse files
committed
docs: fix -remote paths in Complete Examples to use // prefix
Without // prefix, Git Bash converts /var/www/html to a Windows path like C:/Program Files/Git/var/www/html, causing the command to fail.
1 parent cb3ca06 commit 99021d4

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.ja.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ win-sshpass -p 'mypass' ssh [email protected] 'docker ps'
159159
win-sshpass -i ~/.ssh/id_ed25519 ssh [email protected] 'sudo systemctl restart nginx'
160160

161161
# 3. ディレクトリ全体をサーバーにアップロード
162-
win-sshpass -h server.com -p 'mypass' -local ./dist -remote /var/www/html
162+
win-sshpass -h server.com -p 'mypass' -local ./dist -remote //var/www/html
163163

164164
# 4. サーバーのログディレクトリをダウンロード
165-
win-sshpass -h server.com -p 'mypass' -d -remote /var/log/nginx -local ./logs
165+
win-sshpass -h server.com -p 'mypass' -d -remote //var/log/nginx -local ./logs
166166

167167
# 5. SCP でファイルをアップロード
168168
win-sshpass -p 'mypass' scp ./app.jar [email protected]:/opt/app/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ win-sshpass -p 'mypass' ssh [email protected] 'docker ps'
165165
win-sshpass -i ~/.ssh/id_ed25519 ssh [email protected] 'sudo systemctl restart nginx'
166166

167167
# 3. Upload entire directory to server
168-
win-sshpass -h server.com -p 'mypass' -local ./dist -remote /var/www/html
168+
win-sshpass -h server.com -p 'mypass' -local ./dist -remote //var/www/html
169169

170170
# 4. Download server log directory
171-
win-sshpass -h server.com -p 'mypass' -d -remote /var/log/nginx -local ./logs
171+
win-sshpass -h server.com -p 'mypass' -d -remote //var/log/nginx -local ./logs
172172

173173
# 5. SCP upload file
174174
win-sshpass -p 'mypass' scp ./app.jar [email protected]:/opt/app/

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ win-sshpass -p 'mypass' ssh [email protected] 'docker ps'
159159
win-sshpass -i ~/.ssh/id_ed25519 ssh [email protected] 'sudo systemctl restart nginx'
160160

161161
# 3. 上传整个目录到服务器
162-
win-sshpass -h server.com -p 'mypass' -local ./dist -remote /var/www/html
162+
win-sshpass -h server.com -p 'mypass' -local ./dist -remote //var/www/html
163163

164164
# 4. 下载服务器日志目录
165-
win-sshpass -h server.com -p 'mypass' -d -remote /var/log/nginx -local ./logs
165+
win-sshpass -h server.com -p 'mypass' -d -remote //var/log/nginx -local ./logs
166166

167167
# 5. SCP 上传文件
168168
win-sshpass -p 'mypass' scp ./app.jar [email protected]:/opt/app/

README.zh-TW.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ win-sshpass -p 'mypass' ssh [email protected] 'docker ps'
159159
win-sshpass -i ~/.ssh/id_ed25519 ssh [email protected] 'sudo systemctl restart nginx'
160160

161161
# 3. 上傳整個目錄到伺服器
162-
win-sshpass -h server.com -p 'mypass' -local ./dist -remote /var/www/html
162+
win-sshpass -h server.com -p 'mypass' -local ./dist -remote //var/www/html
163163

164164
# 4. 下載伺服器日誌目錄
165-
win-sshpass -h server.com -p 'mypass' -d -remote /var/log/nginx -local ./logs
165+
win-sshpass -h server.com -p 'mypass' -d -remote //var/log/nginx -local ./logs
166166

167167
# 5. SCP 上傳檔案
168168
win-sshpass -p 'mypass' scp ./app.jar [email protected]:/opt/app/

0 commit comments

Comments
 (0)