Commit 6a4633af authored by sjplimp's avatar sjplimp Committed by GitHub
Browse files

Merge pull request #12 from akohlmey/shell-script-paranoia

Disable custom locale and grep options in shell scripts
parents c80dad00 c570bf26
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3,6 +3,10 @@

mode=$1

# enforce using portable C locale
LC_ALL=C
export LC_ALL

# arg1 = file, arg2 = file it depends on

action () {
+4 −0
Original line number Diff line number Diff line
@@ -3,6 +3,10 @@

mode=$1

# enforce using portable C locale
LC_ALL=C
export LC_ALL

# arg1 = file, arg2 = file it depends on

action () {
+4 −0
Original line number Diff line number Diff line
# Depend.sh = Install/unInstall files due to package dependencies
# this script is invoked after any package is installed/uninstalled

# enforce using portable C locale
LC_ALL=C
export LC_ALL

# all parent/child package dependencies should be listed below
# parent package = has files that files in another package derive from
# child package = has files that derive from files in another package
+4 −0
Original line number Diff line number Diff line
@@ -3,6 +3,10 @@

mode=$1

# enforce using portable C locale
LC_ALL=C
export LC_ALL

# arg1 = file, arg2 = file it depends on

action () {
+4 −0
Original line number Diff line number Diff line
@@ -7,6 +7,10 @@

mode=$1

# enforce using portable C locale
LC_ALL=C
export LC_ALL

# arg1 = file, arg2 = file it depends on

action () {
Loading