Skip to content

Commit

Permalink
feat: Git pull in setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Penguinmaster2001 committed Jul 11, 2024
1 parent e5749dc commit 34ae230
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/pi_startup/auto_update_service/setup.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@

# No shebang, not executable run this with bash directly
# No shebang, not executable. Run this with bash directly

# Test script
# Runs some other scripts

git_dir='/home/pi/Documents/ug-pi/'

cd git_dir

git pull >> ~/Documents/setup.log

echo $(pwd) > testing.txt

/home/pi/Documents/ug-pi/src/pi_startup/startup_stuff/test.sh
bash ./src/pi_startup/startup_stuff/test.sh

python3 /home/pi/Documents/ug-pi/src/pi_startup/startup_stuff/test.py > ~/Documents/test_py_output.txt
python3 ./src/pi_startup/startup_stuff/test.py > ~/Documents/test_py_output.txt
2 changes: 2 additions & 0 deletions src/pi_startup/startup_stuff/localtesting.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@

# No shebang, not executable. Run this with bash directly

python3 $1 > test_py_output.txt
Empty file modified src/pi_startup/startup_stuff/test.py
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion src/pi_startup/startup_stuff/test.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#! /bin/bash
# No shebang, not executable. Run this with bash directly

# Makes a file somewhere

Expand Down

0 comments on commit 34ae230

Please sign in to comment.