Skip to content

Commit 773e094

Browse files
restructured project, resolved pathing issues
1 parent 5fb2b93 commit 773e094

File tree

9 files changed

+23
-7
lines changed

9 files changed

+23
-7
lines changed

SETUP.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

bin/notify

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
cd "$(dirname "${BASH_SOURCE[0]}")"
3+
source .config
4+
cd $proj_dir

rexec.sh renamed to bin/rexec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
2-
2+
cd "$(dirname "${BASH_SOURCE[0]}")"
33
source ".config"
4-
4+
cd $proj_dir
55
lftp -f "
66
open $remote_host
77
user $remote_user $remote_pass

rshell.sh renamed to bin/rshell

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/bin/bash
2+
cd "$(dirname "${BASH_SOURCE[0]}")"
23
source ".config"
4+
cd $proj_dir
35
lftp -u $remote_user,$remote_pass $remote_host

bin/sync

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
cd "$(dirname "${BASH_SOURCE[0]}")"
3+
source ".config"
4+
cd $proj_dir

bin/upload

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
cd "$(dirname "${BASH_SOURCE[0]}")"
3+
source ".config"
4+
cd $proj_dir
File renamed without changes.

list_files.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
5+
rm -f bin/.config
6+
cp $1 bin/.config
7+
echo "proj_dir=$DIR" >> bin/.config

0 commit comments

Comments
 (0)