mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
Initial Import
This commit is contained in:
14
config/which
Executable file
14
config/which
Executable file
@@ -0,0 +1,14 @@
|
||||
bin=$1
|
||||
spath="`echo $PATH | sed 's/:/ /g;'`"
|
||||
if [ -x $bin ]; then
|
||||
echo $bin
|
||||
exit
|
||||
fi
|
||||
for pd in $spath; do
|
||||
if [ -x $pd/$bin ]; then
|
||||
echo $pd/$bin
|
||||
exit
|
||||
fi
|
||||
done
|
||||
echo 'not found'
|
||||
|
||||
Reference in New Issue
Block a user