[#120222879] styling on frontrunner

This commit is contained in:
Nathan Farrant-Diaz 2016-06-08 10:25:26 -04:00
parent e00fe9dfad
commit b8fc565a1d

View File

@ -1,36 +1,36 @@
#!/bin/bash #!/bin/bash
temp=$(readlink $0) #reads the symlink in node_modules/.bin which gives the relative path to the scripts/frontrunner script of this module temp=$(readlink "${0}") #reads the symlink in node_modules/.bin which gives the relative path to the scripts/frontrunner script of this module
script_folder=$(dirname $temp) #gives the relative path from node_modules/.bin/ to the scripts dir of this module script_folder=$(dirname "${temp}") #gives the relative path from node_modules/.bin/ to the scripts dir of this module
bin_folder=$(dirname $0) #gives the absolute path of node_modules/.bin. We will need to call bin_folder/script_folder/some_script to call some_script of this module bin_folder=$(dirname "${0}") #gives the absolute path of node_modules/.bin. We will need to call bin_folder/script_folder/some_script to call some_script of this module
case "$1" in case "${1}" in
'test') 'test')
./scripts/check_conf_file.sh ./scripts/check_conf_file.sh
;; ;;
'apex-to-file') 'apex-to-file')
$bin_folder/$script_folder/apex-to-file "${bin_folder}"/"${script_folder}"/apex-to-file
;; ;;
'file-to-apex') 'file-to-apex')
$bin_folder/$script_folder/file-to-apex "${bin_folder}"/"${script_folder}"/file-to-apex
;; ;;
'new-conf-file') 'new-conf-file')
$bin_folder/$script_folder/new-conf-file "${bin_folder}"/"${script_folder}"/new-conf-file
;; ;;
'switch-conf-file') 'switch-conf-file')
$bin_folder/$script_folder/switch-conf-file "${bin_folder}"/"${script_folder}"/switch-conf-file
;; ;;
'read-conf-file') 'read-conf-file')
$bin_folder/$script_folder/read-conf-file "${bin_folder}"/"${script_folder}"/read-conf-file
;; ;;
'generate-app-id') 'generate-app-id')
$bin_folder/$script_folder/generate-app-id "${bin_folder}"/"${script_folder}"/generate-app-id
;; ;;
'uninstall-apex') 'uninstall-apex')
$bin_folder/$script_folder/uninstall-apex "${bin_folder}"/"${script_folder}"/uninstall-apex
;; ;;
*) *)
echo "bad command" echo "apex-source-control: bad command"
;; ;;
esac esac