about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-07-28 08:25:05 -0400
committerCharadon <dev@iotib.net>2022-07-28 08:25:05 -0400
commit6ec938cb04edde600e20e20980258b58231b7639 (patch)
tree3357b1923cd1c35536ffdb139dad9261c49519d6
parent31e93d820bb2a4f875e50c73e605e910a1778eb7 (diff)
downloaddscip-6ec938cb04edde600e20e20980258b58231b7639.tar.gz
Fixed some bugs, and added a bit more consistency to the examples
-rwxr-xr-xdscip2
-rwxr-xr-xfailed.sh4
-rwxr-xr-xpost.sh8
3 files changed, 9 insertions, 5 deletions
diff --git a/dscip b/dscip
index 275648d..5d86b93 100755
--- a/dscip
+++ b/dscip
@@ -54,7 +54,7 @@ build () {
 	# Print variables #
 	{
 		echo "################################################################################";
-		printf "%s" "$(date) | $DSCIP_NAME | $CURRENT_COMMIT"
+		printf "%s\n" "$(date) | $DSCIP_NAME | $CURRENT_COMMIT"
 		echo "################################################################################";
 		echo "DSCIP_GITREPO=$DSCIP_GITREPO";
 		echo "DSCIP_GITMODE=$DSCIP_GITMODE";
diff --git a/failed.sh b/failed.sh
index 524f16c..e1e0f02 100755
--- a/failed.sh
+++ b/failed.sh
@@ -8,8 +8,8 @@ ftp -in <<EOF
 open 192.168.1.5
 mkdir $DSCIP_NAME
 cd $DSCIP_NAME
-mkdir $CURRENT_NAME
-cd $CURRENT_NAME
+mkdir $CURRENT_COMMIT
+cd $CURRENT_COMMIT
 mkdir $(uname)
 cd $(uname)
 put $WORKING_DIRECTORY/output.txt output-failed.txt
diff --git a/post.sh b/post.sh
index 8d5404b..307aa5a 100755
--- a/post.sh
+++ b/post.sh
@@ -13,10 +13,14 @@ $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz app/
 ftp -in <<EOF
 open 192.168.255.255
 user username p@ssw0rd
+mkdir $DSCIP_NAME
+cd $DSCIP_NAME
 mkdir $CURRENT_COMMIT
 cd $CURRENT_COMMIT
-put $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz
-put $WORKING_DIRECTORY/output.txt output-$CURRENT_COMMIT.txt
+mkdir $(uname)
+cd $(uname)
+put $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz
+put $WORKING_DIRECTORY/output.txt output-success.txt
 close
 bye
 EOF