aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-10 00:55:54 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-10 00:55:54 +0200
commitc529c0628b08d526c30acf9d92afd0005bb0d00d (patch)
treec3c4f644fbcccb6f69077b5946a77c1d1804e53f
parent6bfb799cb9834311da4abb68ccf82e28ce40b194 (diff)
downloadltask-c529c0628b08d526c30acf9d92afd0005bb0d00d.tar.gz
Whitespace errors
-rw-r--r--Readme.md2
-rw-r--r--libs/pkgmanager2
-rwxr-xr-xltask2
-rw-r--r--tasks/example2
-rw-r--r--tasks/jenkins2
-rw-r--r--tasks/reboot4
-rw-r--r--tasks/system-update4
-rwxr-xr-xtools/rexec.sh2
8 files changed, 10 insertions, 10 deletions
diff --git a/Readme.md b/Readme.md
index 3d0432c..226bc45 100644
--- a/Readme.md
+++ b/Readme.md
@@ -44,7 +44,7 @@ Reference for environment variables
FILES Array of Files to copy over before script invocation
INCLUDES Array of libraries to include
PARALLEL Enable parallel execution (yes/[no])
-
+ #
# Available in setup
ASSET_DIR path to folder where eg keys are stored
TOOL_DIR path to helper script folder
diff --git a/libs/pkgmanager b/libs/pkgmanager
index 25ac4ca..5c80e19 100644
--- a/libs/pkgmanager
+++ b/libs/pkgmanager
@@ -25,7 +25,7 @@ case $ID in
FULLUPGRADE_CMD="dist-upgrade"
;;
*)
- 1>&2 echo Distribution could not be determined
+ 1>&2 echo Distribution could not be determined
exit 1
esac
diff --git a/ltask b/ltask
index d9a8b6a..4716c63 100755
--- a/ltask
+++ b/ltask
@@ -87,7 +87,7 @@ for (( i=0; i < $ARGC;i++ )); do
if [[ ! ${ARGV[$i]} =~ $ARGREGEX ]]; then
[ -z $TASK ] && TASK=${ARGV[$i]} && continue
[ -z $TARGET ] && TARGET=${ARGV[$i]} && continue
-
+
print_help 1
fi
diff --git a/tasks/example b/tasks/example
index 8974aee..a833a6a 100644
--- a/tasks/example
+++ b/tasks/example
@@ -19,7 +19,7 @@ function task_setup() {
SSH_USER=server
SSH_IDENTITY_FILE=$ASSET_DIR/id_rsa
-
+
FILES+=()
TASK_ISSET="yes"
diff --git a/tasks/jenkins b/tasks/jenkins
index 5598a9e..d763377 100644
--- a/tasks/jenkins
+++ b/tasks/jenkins
@@ -10,7 +10,7 @@ function task_setup() {
# Available environment variables
# $ASSET_DIR
# $TOOL_DIR
-
+
SSH_USER=server
SSH_IDENTITY_FILE=$ASSET_DIR/id_jenkins
diff --git a/tasks/reboot b/tasks/reboot
index 3027502..83c04fd 100644
--- a/tasks/reboot
+++ b/tasks/reboot
@@ -9,10 +9,10 @@ function task_setup() {
# Available environment variables
# $ASSET_DIR
# $TOOL_DIR
-
+
SSH_USER=server
SSH_IDENTITY_FILE=$ASSET_DIR/id_rsa
-
+
TASK_ISSET="yes"
}
diff --git a/tasks/system-update b/tasks/system-update
index 865014c..8a8c55d 100644
--- a/tasks/system-update
+++ b/tasks/system-update
@@ -7,7 +7,7 @@ function task_exec() {
sudo pkg_upgrade
ret=$(($ret + $?))
-
+
exit $ret
}
@@ -15,7 +15,7 @@ function task_setup() {
# Available environment variables
# $ASSET_DIR
# $TOOL_DIR
-
+
INCLUDES+=("$INCLUDE_DIR/pkgmanager")
SSH_USER=server
diff --git a/tools/rexec.sh b/tools/rexec.sh
index d60c021..dea9cc8 100755
--- a/tools/rexec.sh
+++ b/tools/rexec.sh
@@ -62,7 +62,7 @@ function parse_args() {
exit 1;;
esac
done
-
+
[ -z $SSH_HOST ] && echo No host specified && exit 1
[ ${#SCRIPT_FILES[@]} -eq 0 ] && echo No script specified && exit 1
}