Skip to content

Commit 6723677

Browse files
committed
Remove unnecessary SCRIPT_DIR variable
SCRIPT_DIR and ROOT variables whose purpose is to get absolute path of the directory where the script is located is unused in several places Signed-off-by: Tomáš Nevrlka <[email protected]>
1 parent 868f121 commit 6723677

11 files changed

+0
-16
lines changed

hack/copy-to-tssc-templates

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
32

43
# Assumes local copies of the repos
54
# https://github.com/redhat-appstudio/tssc-sample-templates or user fork in ../

hack/ghub-get-vars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/bash
2-
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
32

43
gh secret list

hack/glab-get-vars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
32

43
if [ $# -ne 1 ]; then
54
echo "Missing param, provide gitlab repo name"

hack/glab-set-vars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
32

43
if [ $# -ne 1 ]; then
54
echo "Missing param, provide gitlab repo name"

hack/jenkins-create-secret

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
5-
64
SECRET_NAME=$1
75
SECRET_VALUE=$2
86

hack/jenkins-create-user-password

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
5-
64
SECRET_NAME=$1
75
USER_NAME=$2
86
USER_PW=$3

hack/jenkins-get-credentials

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
33

4-
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
5-
64
SECRET_NAME=$1
75

86
SECRET_INFO="$(curl -s \

hack/rhtap-promote

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash -e
22
set -o pipefail
33

4-
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"/..
5-
64
# Print help message
75
function print_help() {
86
echo "Usage: $0 [--env dev | development | stage ] [--repo <repo-url>] [-h|--help]"

hack/rhtap-push-dev

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash -e
22
set -o pipefail
33

4-
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"/..
5-
64
# Print help message
75
function print_help() {
86
echo "Usage: $0 [--env dev | development | stage ] [--repo <repo-url>] [-h|--help]"

hack/update-jenkins-library

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
32

43
# Copy the jenkins file contents the shared library
54
# Can be used to update the release by setting

0 commit comments

Comments
 (0)