Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

The shebangs in the modules and extensions are used solely for syntax…

… highlighting, therefore we use bin/sh
  • Loading branch information...
commit 1e2fea62260718de4e97f70d9b8523100efc0ff1 1 parent 9faea4f
@wayneeseguin wayneeseguin authored
Showing with 191 additions and 171 deletions.
  1. +2 −2 bin/sm
  2. +26 −4 bin/smp
  3. +2 −2 core/cli/actions/call
  4. +1 −1  core/cli/actions/clone
  5. +1 −1  core/cli/actions/console
  6. +47 −49 core/cli/actions/dev/create
  7. +8 −9 core/cli/actions/dev/package
  8. +2 −4 core/cli/actions/dev/publish
  9. +1 −1  core/cli/actions/help
  10. +1 −1  core/cli/actions/install
  11. +2 −1  core/cli/actions/module_utils/edit
  12. +1 −1  core/cli/actions/module_utils/help
  13. +1 −1  core/cli/actions/module_utils/list
  14. +1 −1  core/cli/actions/module_utils/open
  15. +1 −1  core/cli/actions/module_utils/src
  16. +1 −1  core/cli/actions/open
  17. +1 −1  core/cli/actions/pkg/help
  18. +1 −1  core/cli/actions/src
  19. +1 −1  core/cli/actions/svc/help
  20. +1 −1  core/cli/actions/update
  21. +1 −1  core/cli/actions/version
  22. +1 −1  core/cli/actions/website
  23. +1 −1  core/cli/modules/shell/cli
  24. +1 −1  core/cli/modules/shell/completion/bash
  25. +1 −1  core/cli/modules/shell/dev/dsl
  26. +1 −1  core/cli/modules/shell/dsl
  27. +1 −1  core/cli/modules/shell/ext/dsl
  28. +1 −1  core/cli/modules/shell/ext/initialize
  29. +1 −1  core/cli/modules/shell/get/dsl
  30. +1 −1  core/cli/modules/shell/initialize
  31. +1 −1  core/cli/modules/shell/man/dsl
  32. +1 −1  core/cli/modules/shell/module_utils/dsl
  33. +1 −1  core/cli/modules/shell/pkg/cli
  34. +1 −1  core/cli/modules/shell/sets/dsl
  35. +1 −1  core/cli/modules/shell/smrc/dsl
  36. +1 −1  core/cli/modules/shell/templates/dsl
  37. +1 −1  core/cli/modules/shell/vcs/dsl
  38. +1 −1  core/ext/modules/shell/array/dsl
  39. +1 −1  core/ext/modules/shell/array/initialize
  40. +1 −1  core/ext/modules/shell/database/dsl
  41. +3 −3 core/ext/modules/shell/database/extensions
  42. +1 −1  core/ext/modules/shell/database/initialize
  43. +1 −1  core/ext/modules/shell/date/dsl
  44. +1 −1  core/ext/modules/shell/date/initialize
  45. +1 −1  core/ext/modules/shell/defaults/dsl
  46. +1 −1  core/ext/modules/shell/defaults/initialize
  47. +1 −1  core/ext/modules/shell/environment/dsl
  48. +1 −1  core/ext/modules/shell/extensions/actions/dsl
  49. +1 −1  core/ext/modules/shell/extensions/detection/dsl
  50. +1 −1  core/ext/modules/shell/extensions/initialize
  51. +1 −1  core/ext/modules/shell/extensions/manipulation/dsl
  52. +1 −1  core/ext/modules/shell/extensions/standard/dsl
  53. +1 −1  core/ext/modules/shell/files/dsl
  54. +1 −1  core/ext/modules/shell/filesystem/dsl
  55. +1 −1  core/ext/modules/shell/hash/dsl
  56. +1 −1  core/ext/modules/shell/help/dsl
  57. +1 −1  core/ext/modules/shell/help/initialize
  58. +1 −1  core/ext/modules/shell/interactive/dsl
  59. +1 −1  core/ext/modules/shell/logging/dsl
  60. +1 −1  core/ext/modules/shell/logging/initialize
  61. +1 −1  core/ext/modules/shell/os/dsl
  62. +1 −1  core/ext/modules/shell/package/dsl
  63. +3 −3 core/ext/modules/shell/package/extensions
  64. +1 −1  core/ext/modules/shell/processes/dsl
  65. +1 −1  core/ext/modules/shell/processes/initialize
  66. +1 −1  core/ext/modules/shell/project/dsl
  67. +1 −1  core/ext/modules/shell/project/initialize
  68. +1 −1  core/ext/modules/shell/project/interactive
  69. +1 −1  core/ext/modules/shell/rvm/dsl
  70. +1 −1  core/ext/modules/shell/rvm/initialize
  71. +1 −1  core/ext/modules/shell/service/dsl
  72. +3 −3 core/ext/modules/shell/service/extensions
  73. +1 −1  core/ext/modules/shell/steps/dsl
  74. +1 −1  core/ext/modules/shell/steps/initialize
  75. +1 −1  core/ext/modules/shell/templates/dsl
  76. +1 −1  core/ext/modules/shell/time/dsl
  77. +1 −1  core/ext/modules/shell/time/initialize
  78. +1 −1  core/ext/modules/shell/users/dsl
  79. +1 −1  core/ext/modules/shell/variables/dsl
  80. +1 −1  core/ext/modules/shell/vcs/detection/dsl
  81. +1 −1  core/ext/modules/shell/vcs/dsl
  82. +1 −1  core/ext/modules/shell/vcs/errors/dsl
  83. +1 −1  core/ext/modules/shell/vcs/handlers/archive/dsl
  84. +1 −1  core/ext/modules/shell/vcs/handlers/fossil/dsl
  85. +1 −1  core/ext/modules/shell/vcs/handlers/git/dsl
  86. +1 −1  core/ext/modules/shell/vcs/handlers/github/dsl
  87. +1 −1  core/ext/modules/shell/vcs/handlers/github/initialize
  88. +1 −1  core/ext/modules/shell/vcs/handlers/hg/dsl
  89. +1 −1  core/ext/modules/shell/vcs/handlers/path/dsl
  90. +1 −1  core/ext/modules/shell/vcs/handlers/svn/dsl
  91. +1 −1  core/ext/modules/shell/vcs/initialize
  92. +1 −1  core/install/modules/shell/dsl
  93. +1 −1  core/install/modules/shell/initialize
  94. +1 −1  core/sm/modules/shell/core/cli
  95. +1 −1  core/sm/modules/shell/core/dsl
  96. +1 −1  core/sm/modules/shell/core/initialize
  97. +1 −1  core/sm/modules/shell/logging/dsl
  98. +4 −2 core/sm/modules/shell/logging/initialize
  99. +1 −1  core/sm/modules/shell/modules/dsl
  100. +1 −1  core/sm/modules/shell/string/dsl
View
4 bin/sm
@@ -1,6 +1,6 @@
-#!/usr/bin/env bash
+#!/bin/bash
#
-# Badass Delectable Scripting Management (BDSM) Framework
+# S{cripting,ystem,tack} Management (SM) Framework (Core)
#
# Copyright (c) 2009-2011 Wayne E. Seguin
#
View
30 bin/smp 100644 → 100755
@@ -1,16 +1,37 @@
-#!/usr/bin/env bash
+#!/bin/bash
os_cpu_count()
{
- local _cpu_count
+ # Default the CPU count to 1
+ local _cpu_count=1
- if [[ "$OSTYPE" = *darwin* ]]
+ # If the operating system is Darwin (OSX),
+ # then read the CPU count using the sysctl key hw.ncpu, and trim off
+ # everything except the last space separated field.
+ if os_is_darwin
then
read -r _cpu_count < <(/usr/sbin/sysctl hw.ncpu)
_cpu_count="${_cpu_count//* }"
- elif [[ "$OSTYPE" = *linux* ]]
+ # If the operating system is Linux, gather the information directly from
+ # the proc filesystem.
+ elif os_is_linux
then
_cpu_count=$(awk '/^processor/{count++} END{print count}' /proc/cpuinfo 2>&1)
+
+ # Warn that this function has not yet been implemented for solaris.
+ elif os_is_solaris
+ then
+ warn "CPU counting for Solaris has not yet been implemented; returning 1."
+
+ # Warn that this function has not yet been implemented for bsd.
+ elif os_is_bsd
+ then
+ warn "CPU counting for BSD has not yet been implemented; returning 1."
+
+ # Warn that this function has not yet been implemented for aix.
+ elif os_is_aix
+ then
+ warn "CPU counting for AIX has not yet been implemented; returning 1."
fi
(( _cpu_count > 0 )) || _cpu_count=1 # Sanity Check
@@ -58,3 +79,4 @@ case "$*" in
*)
sm "$@"
esac
+
View
4 core/cli/actions/call
@@ -1,6 +1,6 @@
-#!/usr/bin/env bash
+#!/bin/sh
-if [[ ${#extension_args[@]} -eq 0 ]]
+if (( ${#extension_args[@]} == 0 ))
then
log 'usage:\n sm call function_name [function_args...]'
elif ! declare -F "${extension_args[0]}" >/dev/null
View
2  core/cli/actions/clone
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
NYI
# extension_is_installed removed, as it was not working already.
View
2  core/cli/actions/console
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
shell_version=( $( ${user_shell} --version | head -n 1 ) )
View
96 core/cli/actions/dev/create
@@ -1,51 +1,49 @@
-#!/usr/bin/env bash
-
-if array_is_nonempty extension_args
-then
- target_path="${extensions_development_path:-"$initial_pwd"}"
-
- for extension in ${extension_args[@]}
- do
- if path_exists "${target_path}/${extension}"
- then
- error "Extension '${extension}' already exists "\
- "at ${target_path}/${extension}."
- else
- if path_exists "${sm_path}/core/cli/templates/ext/${language:-shell}"
+#!/bin/sh
+
+array_is_nonempty extension_args ||
+ fail "You must specify at least one extension name."
+
+target_path="${extensions_development_path:-"$initial_pwd"}"
+
+for extension in ${extension_args[@]}
+do
+ if path_exists "${target_path}/${extension}"
+ then
+ error "Extension '${extension}' already exists "\
+ "at ${target_path}/${extension}."
+ else
+ path_exists "${sm_path}/core/cli/templates/ext/${language:-shell}" ||
+ fail "Extension template files are missing from "\
+ "$target_path/core/cli/templates/ext/${language:-shell}."
+
+ enter "${sm_path}/core/cli/templates/ext/${language:-shell}"
+
+ _path="${target_path}/${extension}"
+
+ copy_paths actions modules templates config \
+ to "${_path}"
+
+ copy_files README.md VERSION CHANGELOG.md TODO.md \
+ to "${_path}"
+
+ for _module in "${extension_modules[@]}"
+ do
+ extension_module_add "${extension}" "${_module}" "${_path}"
+
+ # Run the module's extension setup function, if it exists.
+ if file_exists "${sm_path}/core/cli/modules/shell/${_module}/extensions"
then
- enter "${sm_path}/core/cli/templates/ext/${language:-shell}"
-
- _path="${target_path}/${extension}"
-
- copy_paths actions modules templates config \
- to "${_path}"
-
- copy_files README.md VERSION CHANGELOG.md TODO.md \
- to "${_path}"
-
- for _module in "${extension_modules[@]}"
- do
- extension_module_add "${extension}" "${_module}" "${_path}"
-
- # Run the module's extension setup function, if it exists.
- if file_exists "${sm_path}/core/cli/modules/shell/${_module}/extensions"
- then
- source_files "${sm_path}/core/cli/modules/shell/${_module}/extensions"
- if command_exists "${_module}_extension_setup"
- then
- "${_module}_extension_setup" "${extension}" "${_module}" "${_path}"
- #unset -f "${_module}_extension_setup"
- fi
- fi
- done
- log "Extension created from template at ${target_path}/${extension}/."
- else
- fail "Extension template files are missing from "\
- "$target_path/core/cli/templates/ext/${language:-shell}."
+ source_files "${sm_path}/core/cli/modules/shell/${_module}/extensions"
+ if command_exists "${_module}_extension_setup"
+ then
+ "${_module}_extension_setup" "${extension}" "${_module}" "${_path}"
+ #unset -f "${_module}_extension_setup"
+ fi
fi
- fi
- done
- succeed "Created extensions ${extension_args[@]}."
-else
- fail "You must specify at least one extension name."
-fi
+ done
+ log "Extension created from template at ${target_path}/${extension}/."
+ fi
+done
+
+succeed "Created extensions ${extension_args[@]}."
+
View
17 core/cli/actions/dev/package
@@ -1,11 +1,10 @@
-#!/usr/bin/env bash
+#!/bin/sh
-if array_is_nonempty extension_args
-then
- for extension in "${extension_args[@]}"
- do
- extension_package "${extension}"
- done
-else
+array_is_nonempty extension_args ||
error "You must specify at least one extension name for packaging."
-fi
+
+for extension in "${extension_args[@]}"
+do
+ extension_package "${extension}"
+done
+
View
6 core/cli/actions/dev/publish
@@ -1,9 +1,7 @@
-#!/usr/bin/env bash
+#!/bin/sh
-if (( ${#extension_args[@]} == 0 ))
-then
+(( ${#extension_args[@]} )) ||
error "You must specify at least one extension name for packaging."
-fi
for extension in "${extension_args[@]}"
do
View
2  core/cli/actions/help
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
extension="<extension>"
View
2  core/cli/actions/install
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
modules ext/package
View
3  core/cli/actions/module_utils/edit
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
if (( ${#extension_args[@]} == 0 ))
then # edit core
@@ -14,6 +14,7 @@ else # edit extension
"To see installed extensions, run:\n sm list"
enter "${extensions_development_path}/${extension_args[0]}"
+
exec ${EDITOR:-vi} .
fi
View
2  core/cli/actions/module_utils/help
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
modules help
View
2  core/cli/actions/module_utils/list
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
modules_list
View
2  core/cli/actions/module_utils/open
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
array_is_nonempty extension_args ||
fail "You must specify at least one extension name."
View
2  core/cli/actions/module_utils/src
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
array_is_nonempty extension_args ||
fail "You must specify at least one extension name."
View
2  core/cli/actions/open
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
array_is_nonempty extension_args ||
fail "You must specify at least one extension name."
View
2  core/cli/actions/pkg/help
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
description "${extension} BDSM extension."
View
2  core/cli/actions/src
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
array_is_nonempty extension_args ||
fail "You must specify at least one extension name."
View
2  core/cli/actions/svc/help
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
description "${extension} BDSM extension."
View
2  core/cli/actions/update
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
NYI
# What is this code intended to do?
View
2  core/cli/actions/version
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
sm_version
View
2  core/cli/actions/website
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
array_is_nonempty extension_args ||
fail "You must specify at least one extension name."
View
2  core/cli/modules/shell/cli
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
version_pattern="+([[:digit:]]).+([[:digit:]]).+([[:digit:]])"
View
2  core/cli/modules/shell/completion/bash
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
for file in $(find $bdsm_path -type f -name completion)
do
View
2  core/cli/modules/shell/dev/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
sm_development_setup()
{
View
2  core/cli/modules/shell/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#TODO: this code should be distributed to proper places
extension_cli()
View
2  core/cli/modules/shell/ext/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
ext_help()
{
View
2  core/cli/modules/shell/ext/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
ensure_paths_exist "${sm_path}/exts"
View
2  core/cli/modules/shell/get/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
fetch_version()
{
View
2  core/cli/modules/shell/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#TODO: update repository_url to "sm/bdsm"
true \
View
2  core/cli/modules/shell/man/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
detect_man()
{
View
2  core/cli/modules/shell/module_utils/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# Print out a list of all installed modules.
# ## modules\_installed()
View
2  core/cli/modules/shell/pkg/cli
@@ -1,3 +1,3 @@
-#!/usr/bin/env bash
+#!/bin/sh
package_cli "${extension_args[@]}"
View
2  core/cli/modules/shell/sets/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
sets_help()
{
View
2  core/cli/modules/shell/smrc/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
smrc_install()
{
View
2  core/cli/modules/shell/templates/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# actions
templates_help()
View
2  core/cli/modules/shell/vcs/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
scm_help()
{
View
2  core/ext/modules/shell/array/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# # Array Module
View
2  core/ext/modules/shell/array/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
if [[ -n "${ZSH_VERSION:-}" ]]
then
View
2  core/ext/modules/shell/database/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
database_cli()
{
View
6 core/ext/modules/shell/database/extensions
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
database_extension_setup()
{
@@ -11,7 +11,7 @@ database_extension_setup()
# Setup modules/shell/package/{dsl,initialize,cli}
for file in dsl initialize cli
do
- write '#!/usr/bin/env bash' to "modules/${language}/${module}/${file}"
+ write '#!/bin/sh' to "modules/${language}/${module}/${file}"
done
write "\n${module}_cli\n" append to "modules/${language}/${module}/cli"
@@ -19,7 +19,7 @@ database_extension_setup()
# setup actions/package/{...}
for action in help initialize
do
- write '#!/usr/bin/env bash' to "actions/${module}/${action}"
+ write '#!/bin/sh' to "actions/${module}/${action}"
chmod_files 0755 "actions/${module}/${action}"
done
View
2  core/ext/modules/shell/database/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
if user_is_root
then
View
2  core/ext/modules/shell/date/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
date_range()
{
View
2  core/ext/modules/shell/date/initialize
@@ -1,2 +1,2 @@
-#!/usr/bin/env bash
+#!/bin/sh
View
2  core/ext/modules/shell/defaults/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## read\_default()
View
2  core/ext/modules/shell/defaults/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
settings_search_path_cache=()
# This line needs to be commented to allow settings read from smrc.
View
2  core/ext/modules/shell/environment/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## command\_exists()
View
2  core/ext/modules/shell/extensions/actions/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
actions_build_cache_start()
{
View
2  core/ext/modules/shell/extensions/detection/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# detect_action $extension action extension_args "${extension_args[@]}"
detect_action()
View
2  core/ext/modules/shell/extensions/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
true \
"${extensions_development_path:="${extensions_src_path}"}"
View
2  core/ext/modules/shell/extensions/manipulation/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## extension\_version()
View
2  core/ext/modules/shell/extensions/standard/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
extension_path()
{
View
2  core/ext/modules/shell/files/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# # Filesystem Module
View
2  core/ext/modules/shell/filesystem/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# This module is a group module to used to load {files,paths}
View
2  core/ext/modules/shell/hash/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# # Hash in file Module
View
2  core/ext/modules/shell/help/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## show\_help()
View
2  core/ext/modules/shell/help/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
declare -a help_descriptions
declare -a help_action_names
View
2  core/ext/modules/shell/interactive/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## shell\_is\_interactive()
#
View
2  core/ext/modules/shell/logging/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## logrotate()
#
View
2  core/ext/modules/shell/logging/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
if user_is_root
then
View
2  core/ext/modules/shell/os/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# # Bash System Module DSL
View
2  core/ext/modules/shell/package/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## package\_error
#
View
6 core/ext/modules/shell/package/extensions
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
package_extension_setup()
{
@@ -10,12 +10,12 @@ package_extension_setup()
for file in dsl initialize cli
do
- write '#!/usr/bin/env bash' to "modules/${language}/${module}/${file}"
+ write '#!/bin/sh' to "modules/${language}/${module}/${file}"
done
write "\n${module}_cli\n" append to "modules/${language}/${module}/cli"
- write "#!/usr/bin/env bash
+ write "#!/bin/sh
description \"Extension for managing ${extension} \${website_url:-}.\"
action \"package install\" \"Installs ${extension} package.\"
View
2  core/ext/modules/shell/processes/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## process\_lockfile\_lock()
View
2  core/ext/modules/shell/processes/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
process_exit_commands=()
View
2  core/ext/modules/shell/project/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## project\_initialize()
View
2  core/ext/modules/shell/project/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# TODO: Read project and project_path from defaults file first.
if user_is_not_root
View
2  core/ext/modules/shell/project/interactive
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# In order to use the sm interactive project functions, the project module's
# interactive file must be sourced in your profile, such as ~/.bash_profile,
View
2  core/ext/modules/shell/rvm/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## rvm\_install()
View
2  core/ext/modules/shell/rvm/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
source_files "/etc/rvmrc" "$HOME/.rvmrc"
View
2  core/ext/modules/shell/service/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# # General Services functions.
View
6 core/ext/modules/shell/service/extensions
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
service_extension_setup()
{
@@ -10,12 +10,12 @@ service_extension_setup()
for file in dsl initialize cli
do
- write '#!/usr/bin/env bash' to "modules/${language}/${module}/${file}"
+ write '#!/bin/sh' to "modules/${language}/${module}/${file}"
done
write "\n${module}_cli\n" append to "modules/${language}/${module}/cli"
- write '#!/usr/bin/env bash' to "actions/${module}/help"
+ write '#!/bin/sh' to "actions/${module}/help"
chmod_files 0755 "actions/${module}/help"
write "
View
2  core/ext/modules/shell/steps/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
start_step()
{
View
2  core/ext/modules/shell/steps/initialize
@@ -1,3 +1,3 @@
-#!/usr/bin/env bash
+#!/bin/sh
steps_started=()
View
2  core/ext/modules/shell/templates/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
detect_template()
{
View
2  core/ext/modules/shell/time/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## timestamp_set()
View
2  core/ext/modules/shell/time/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
[[ -n "$timestamp" ]] || timestamp_set
View
2  core/ext/modules/shell/users/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## user\_create\_if\_missing()
View
2  core/ext/modules/shell/variables/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## first()
View
2  core/ext/modules/shell/vcs/detection/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# # VCS (SCM) Module
View
2  core/ext/modules/shell/vcs/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# # VCS (SCM) Module
View
2  core/ext/modules/shell/vcs/errors/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
fetch_error_initialize()
{
View
2  core/ext/modules/shell/vcs/handlers/archive/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## archive\_get()
#
View
2  core/ext/modules/shell/vcs/handlers/fossil/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## fossil\_get()
#
View
2  core/ext/modules/shell/vcs/handlers/git/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## git\_get()
#
View
2  core/ext/modules/shell/vcs/handlers/github/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## github\_get()
#
View
2  core/ext/modules/shell/vcs/handlers/github/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
if [[ -z "${github_resolution_order[*]}" ]]
then
View
2  core/ext/modules/shell/vcs/handlers/hg/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## hg\_get()
#
View
2  core/ext/modules/shell/vcs/handlers/path/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## directory\_get()
#
View
2  core/ext/modules/shell/vcs/handlers/svn/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## svn\_get()
#
View
2  core/ext/modules/shell/vcs/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
if [[ ! -w $sm_path ]]
then
View
2  core/install/modules/shell/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
perform()
{
View
2  core/install/modules/shell/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
cleanse_paths=( external completion modules bin extensions )
directories=( bin )
View
2  core/sm/modules/shell/core/cli
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
set +o nounset
set +o noclobber
View
2  core/sm/modules/shell/core/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## sm_exports()
View
2  core/sm/modules/shell/core/initialize
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
shopt -s extglob # Extended globs must always be on for BDSM.
View
2  core/sm/modules/shell/logging/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# ## log()
View
6 core/sm/modules/shell/logging/initialize
@@ -1,6 +1,8 @@
-#!/usr/bin/env bash
+#!/bin/sh
-: ${debug_flags:=""} ${debug_flag:=0} ${trace_flags:="-backtrace"} ${trace_flag:=0} ${var_debug_type_flag:="long"}
+: \
+ ${debug_flags:=""} ${debug_flag:=0} ${trace_flags:="-backtrace"} \
+ ${trace_flag:=0} ${var_debug_type_flag:="long"}
declare -a var_debug_flags
trace_filter_stack=()
View
2  core/sm/modules/shell/modules/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
modules_initialize()
{
View
2  core/sm/modules/shell/string/dsl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
# ## string\_contains()
# Validate if second string is part of first string.
Please sign in to comment.
Something went wrong with that request. Please try again.