Commit 4967a4a3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

erc fix: quote shell variables to prevent word splitting

parent 5f3f6bc4
Pipeline #16824 passed with stage
in 23 seconds
......@@ -17,17 +17,17 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
PROGDIR=$(dirname $0)
PROGDIR=$(dirname "$0")
[ "$PROGDIR" = "." ] && PROGDIR=$(pwd)
# will replaced to /usr/share/erc during install
SHAREDIR=$(dirname $0)
SHAREDIR=$(dirname "$0")
load_helper()
{
local CMD="$SHAREDIR/$1"
[ -r "$CMD" ] || fatal "Have no $CMD helper file"
. $CMD
. "$CMD"
}
load_helper erc-sh-functions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment