Browse Source

Remove a useless function

signals
Gavin Howard 3 years ago
parent
commit
80ba7c98df
Signed by untrusted user who does not match committer: gavin
GPG Key ID: C08038BDF280D33E
  1. 8
      functions.sh
  2. 6
      locale_install.sh

8
functions.sh

@ -51,14 +51,6 @@ readlink() {
printf '%s' "${f##*$d/}"
}
removeext() {
local name="$1"
shift
printf "${name%.*}"
}
die() {
local d="$1"

6
locale_install.sh

@ -65,8 +65,7 @@ locales=$(locale -a)
for file in $locales_dir/*.msg; do
base=$(basename "$file")
locale=$(removeext "$base")
locale=$(basename "$file" ".msg")
loc=$(gen_nlspath "$nlspath" "$locale" "$main_exec")
if [ ! -z "${locales##*$locale*}" ]; then
@ -83,8 +82,7 @@ done
for file in $locales_dir/*.msg; do
base=$(basename "$file")
locale=$(removeext "$base")
locale=$(basename "$file" ".msg")
loc=$(gen_nlspath "$nlspath" "$locale" "$main_exec")
if [ ! -z "${locales##*$locale*}" ]; then

Loading…
Cancel
Save