Skip to content

Commit

Permalink
change from $HOME in unix to ~ to fix all tran commands
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx authored Feb 16, 2022
1 parent 51fb118 commit 0071c31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions constants/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func Start_w() string {
func Start_ml() string {
return `
username=$(tran auth get-username)
cd $HOME/.config/tran
cd ~/.config/tran
git init
tran gh-repo create .tran -d "My tran config - $username" --private -y
git add .
Expand All @@ -61,7 +61,7 @@ func Push_w() string {

func Push_ml() string {
return `
cd $HOME/.config/tran
cd ~/.config/tran
git add .
git commit -m "new tran config"
git push
Expand All @@ -81,7 +81,7 @@ func Pull_w() string {

func Pull_ml() string {
return `
cd $HOME/.config/tran
cd ~/.config/tran
git pull
`
}
Expand All @@ -100,7 +100,7 @@ func Clone_w() string {

func Clone_ml() string {
return `
TRANDIR=$HOME/.config/tran
TRANDIR=~/.config/tran
if [ -d $TRANDIR ]; then
rm -rf $TRANDIR
Expand Down

0 comments on commit 0071c31

Please sign in to comment.