Browse Source

use hyphen instead of slash

master
Robin Thoni 7 years ago
parent
commit
2df19403ae
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      git-backup

+ 1
- 1
git-backup View File

4
 
4
 
5
 initPath()
5
 initPath()
6
 {
6
 {
7
-  cd "$1" && git init && git remote add origin git:backup/$(hostname)$(pwd)
7
+  cd "$1" && git init && git remote add origin git:backup/$(hostname)$(pwd | tr '/' '-')
8
 }
8
 }
9
 
9
 
10
 if [ $# -eq 1 ] && [ "$1" = "--init" ]
10
 if [ $# -eq 1 ] && [ "$1" = "--init" ]

Loading…
Cancel
Save