Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from Heavybullets8/git-ver-check
Browse files Browse the repository at this point in the history
place ver check after cd
  • Loading branch information
Heavybullets8 authored Aug 24, 2022
2 parents ea20316 + d229f2a commit 51016ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions heavy_script.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/bin/bash

#Version
hs_version=$(git describe --tags)

# cd to script, this ensures the script can find the source scripts below, even when ran from a seperate directory
script=$(readlink -f "$0")
script_path=$(dirname "$script")
script_name="heavy_script.sh"
cd "$script_path" || { echo "Error: Failed to change to script directory" ; exit ; }

#Version
hs_version=$(git describe --tags)

source functions/backup.sh
source functions/dns.sh
Expand Down

0 comments on commit 51016ea

Please sign in to comment.