Logo
Explore Help
Sign In
xaked/blackbox
1
0
Fork 0
You've already forked blackbox
mirror of https://github.com/StackExchange/blackbox.git synced 2026-01-16 15:42:16 +02:00
Code Issues Packages Projects Releases Wiki Activity
Files
5f15527d56ffec589f6341c20d4f53172747ebba
blackbox/tools/profile.d-usrblackbox.sh

4 lines
129 B
Bash
Raw Normal View History

Reduce size of profile.d-usrblackbox.sh to below 132 bytes. Add test framework to make sure we don't break bash or sh.
2014-09-12 16:17:35 +00:00
x=/usr/blackbox/bin
Rewrite profile.d-usrblackbox.sh to only use BASH built-ins; retain file size <132 so that it is an "inline" file.
2014-09-12 16:32:27 +00:00
if type pathmunge>/dev/null 2>&1;then
Reduce size of profile.d-usrblackbox.sh to below 132 bytes. Add test framework to make sure we don't break bash or sh.
2014-09-12 16:17:35 +00:00
pathmunge $x
Rewrite profile.d-usrblackbox.sh to only use BASH built-ins; retain file size <132 so that it is an "inline" file.
2014-09-12 16:32:27 +00:00
else case ":$PATH:" in *:$x:*);;*)PATH="$x:$PATH";;esac;fi
Reference in New Issue Copy Permalink
Powered by Gitea Page: 44ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API