Skip to content

Commit f1f9669

Browse files
pprindevilleandrei-pavel
authored andcommitted
[3533] do filename munging with variable expansions
1 parent d4cbf8a commit f1f9669

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/keactrl/keactrl.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ get_pid_from_file() {
118118

119119
# Extract the name portion (from last slash to last dot) of the config file name.
120120
local conf_name
121-
conf_name=$(basename -- "${kea_config_file}" | rev | cut -f2- -d'.' | rev)
121+
conf_name=${kea_config_file##*/}
122+
conf_name=${conf_name%.*}
122123

123124
# Default the directory to --localstatedir / run
124125
local pid_file_dir

0 commit comments

Comments
 (0)