Skip to content

Commit

Permalink
Improve copy folders
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Nov 29, 2018
1 parent 153b6f1 commit 4c84bb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 3 additions & 2 deletions biddibi_boddibi_boo.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash --init-file
#!/bin/bash
# Copyright (C) 2018, Raffaello Bonghi <[email protected]>
# All rights reserved
#
Expand Down Expand Up @@ -190,7 +190,8 @@ main()
echo "Jetson folder does not exist!"
echo "Download informations"
git clone https://github.com/rbonghi/jetson_stats.git jetson
else
fi
if [ -z $MODULE_IM_HOST ] ; then
echo "Check updates for jetson stats ..."
cd jetson
git pull
Expand Down
10 changes: 2 additions & 8 deletions include/remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,9 @@ remote_load_to_host()
if [ -d /tmp/jetson_easy ] ; then
rm -R /tmp/jetson_easy
fi
# build a folder
mkdir -p /tmp/jetson_easy

# Copy all folders
cp -rf include /tmp/jetson_easy
cp -rf jetson /tmp/jetson_easy
cp -rf modules /tmp/jetson_easy
cp -rf biddibi_boddibi_boo.sh /tmp/jetson_easy
cp -rf LICENSE /tmp/jetson_easy
cp -rf README.md /tmp/jetson_easy
rsync -av --progress . /tmp/jetson_easy/ --exclude .git/ 2>&1 >/dev/null

if [ -d $MODULES_CONFIG_PATH ] ; then
# Copy folder
Expand Down

0 comments on commit 4c84bb5

Please sign in to comment.