Skip to content

Commit 30fcc9e

Browse files
committed
Use variable for version
1 parent 95610ca commit 30fcc9e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/symlink-info.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ function _indent {
4848

4949
basename=$(basename -- "$0") # For error messages and help
5050

51+
# Static
52+
version='0.3.2'
53+
5154
# Defaults
5255
exit=0
5356

@@ -59,7 +62,7 @@ while getopts :hv OPT; do
5962
exit 0
6063
;;
6164
v)
62-
echo "symlink-info 0.3.0"
65+
echo "symlink-info $version"
6366
exit 0
6467
;;
6568
*)

src/what.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,9 @@ function what { (
393393

394394
unset IFS # Just in case
395395

396+
# Static
397+
version='0.3.2'
398+
396399
# Defaults
397400
exit=0
398401

@@ -445,7 +448,7 @@ function what { (
445448
print_type_only=true
446449
;;
447450
v)
448-
echo "what 0.2.0"
451+
echo "what $version"
449452
exit 0
450453
;;
451454
*)

0 commit comments

Comments
 (0)