From: Fred Hamster Date: Mon, 16 Dec 2024 18:13:31 +0000 (-0500) Subject: reverted to proper shebang X-Git-Tag: 2.140.189^2~75 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=0d97cfe5765c94fbc03ed19d6ab4d661ce17f63d;p=feisty_meow.git reverted to proper shebang using the "newfangled" env method for finding bash, since we have now seen firsthand that /bin/bash is no longer reliable for all the platforms we want to work on (if it ever was)... --- diff --git a/documentation/headers/shell_header.txt b/documentation/headers/shell_header.txt index 15e2b440..ea5a5ed3 100644 --- a/documentation/headers/shell_header.txt +++ b/documentation/headers/shell_header.txt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #!/usr/bin/perl #!/usr/bin/python ############## diff --git a/experiments/vnc/init.d/vncserver.001 b/experiments/vnc/init.d/vncserver.001 index 2b6e6dd2..8ddd2f70 100644 --- a/experiments/vnc/init.d/vncserver.001 +++ b/experiments/vnc/init.d/vncserver.001 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PATH="$PATH:/usr/bin/" export USER="fred" DISPLAY="1" diff --git a/experiments/vnc/init.d/vncserver.002 b/experiments/vnc/init.d/vncserver.002 index 73bdec08..1828a3c1 100644 --- a/experiments/vnc/init.d/vncserver.002 +++ b/experiments/vnc/init.d/vncserver.002 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PATH="$PATH:/usr/bin/" export USER="fred" DISPLAY="1" diff --git a/experiments/vnc/init.d/vncserver.003 b/experiments/vnc/init.d/vncserver.003 index 73bdec08..1828a3c1 100644 --- a/experiments/vnc/init.d/vncserver.003 +++ b/experiments/vnc/init.d/vncserver.003 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PATH="$PATH:/usr/bin/" export USER="fred" DISPLAY="1" diff --git a/experiments/vnc/init.d/vncserver.004 b/experiments/vnc/init.d/vncserver.004 index 9e95549c..a565283c 100644 --- a/experiments/vnc/init.d/vncserver.004 +++ b/experiments/vnc/init.d/vncserver.004 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PATH="$PATH:/usr/bin/" export USER="fred" DISPLAY="1" diff --git a/experiments/vnc/init.d/vncserver.005 b/experiments/vnc/init.d/vncserver.005 index 5cf5e2bd..05dc526c 100644 --- a/experiments/vnc/init.d/vncserver.005 +++ b/experiments/vnc/init.d/vncserver.005 @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PATH="$PATH:/usr/bin/" export USER="fredhuff" # fredhuff is a different user than my normal user who is logged in on diff --git a/infobase/configuration/azureus/azureus_script.txt b/infobase/configuration/azureus/azureus_script.txt index facabad1..1dbe1fd4 100644 --- a/infobase/configuration/azureus/azureus_script.txt +++ b/infobase/configuration/azureus/azureus_script.txt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cd /opt/azureus ./azureus diff --git a/infobase/configuration/dns/restore_resolv.conf.sh b/infobase/configuration/dns/restore_resolv.conf.sh index 7fca7348..bc16aa5b 100644 --- a/infobase/configuration/dns/restore_resolv.conf.sh +++ b/infobase/configuration/dns/restore_resolv.conf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # gets rid of any customized resolv.conf file for the local machine and reinstates the standard link for it. diff --git a/infobase/configuration/init.d/team_city_startup_example b/infobase/configuration/init.d/team_city_startup_example index 70471886..0e1d199a 100644 --- a/infobase/configuration/init.d/team_city_startup_example +++ b/infobase/configuration/init.d/team_city_startup_example @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # team_city_startup by Chris Koeritz # diff --git a/infobase/configuration/init.d/trac_startup b/infobase/configuration/init.d/trac_startup index 6e2b0142..6326ad6f 100644 --- a/infobase/configuration/init.d/trac_startup +++ b/infobase/configuration/init.d/trac_startup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # tracd startup script by Chris Koeritz # diff --git a/infobase/configuration/pbs/quicktest.pbs b/infobase/configuration/pbs/quicktest.pbs index e0117543..d8e6cc08 100644 --- a/infobase/configuration/pbs/quicktest.pbs +++ b/infobase/configuration/pbs/quicktest.pbs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #PBS -l nodes=1,mem=20m #PBS -M my-email@whereiwork.com diff --git a/infobase/configuration/services/team_city_startup b/infobase/configuration/services/team_city_startup index 25632168..fda3ce6a 100644 --- a/infobase/configuration/services/team_city_startup +++ b/infobase/configuration/services/team_city_startup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # team_city_startup by Chris Koeritz # diff --git a/infobase/configuration/ssh/make_chroot_jail.sh b/infobase/configuration/ssh/make_chroot_jail.sh index 40ae3d89..7dab547b 100644 --- a/infobase/configuration/ssh/make_chroot_jail.sh +++ b/infobase/configuration/ssh/make_chroot_jail.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # (c) Copyright by Wolfgang Fuschlberger # @@ -341,7 +341,7 @@ echo fi # Create /usr/bin/groups in the jail -echo "#!/bin/bash" > usr/bin/groups +echo "#!/usr/bin/env bash" > usr/bin/groups echo "id -Gn" >> usr/bin/groups chmod 755 usr/bin/groups diff --git a/infobase/configuration/stunnel/etc/init.d/stunnel b/infobase/configuration/stunnel/etc/init.d/stunnel index e406ccd5..5b6abf4c 100644 --- a/infobase/configuration/stunnel/etc/init.d/stunnel +++ b/infobase/configuration/stunnel/etc/init.d/stunnel @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Init Script to run stunnel in daemon mode at boot time. # diff --git a/infobase/configuration/trac/trac_startup.sh b/infobase/configuration/trac/trac_startup.sh index 7326c815..7794d3ae 100644 --- a/infobase/configuration/trac/trac_startup.sh +++ b/infobase/configuration/trac/trac_startup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Runs the trac server startup if it's not already going. # This is a lighter-weight solution than adding trac to init scripts, diff --git a/infobase/configuration/x_win/start_fishtank.sh b/infobase/configuration/x_win/start_fishtank.sh index b1c407f4..094dfb98 100644 --- a/infobase/configuration/x_win/start_fishtank.sh +++ b/infobase/configuration/x_win/start_fishtank.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a simple shell that can be dropped in ~/.kde/Autostart to run a # fishtank on the root X window. # note: you must enable desktop | behavior | general | allow programs in diff --git a/infobase/configuration/x_win/start_xroach.sh b/infobase/configuration/x_win/start_xroach.sh index 5d083146..715d7b0d 100644 --- a/infobase/configuration/x_win/start_xroach.sh +++ b/infobase/configuration/x_win/start_xroach.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a simple shell that can be dropped in ~/.kde/Autostart to show a # bunch of roaches on the root X window. # note: you must enable desktop | behavior | general | allow programs in diff --git a/infobase/examples/bashisms/fred_techniques.txt b/infobase/examples/bashisms/fred_techniques.txt index c841a89c..b3f6ef5b 100644 --- a/infobase/examples/bashisms/fred_techniques.txt +++ b/infobase/examples/bashisms/fred_techniques.txt @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # Name : fred_techniques diff --git a/infobase/examples/bashisms/qs_handy_unix_examples.sh b/infobase/examples/bashisms/qs_handy_unix_examples.sh index 5293f3bb..e3712338 100644 --- a/infobase/examples/bashisms/qs_handy_unix_examples.sh +++ b/infobase/examples/bashisms/qs_handy_unix_examples.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # these great examples of handy unix tidbits were donated by "q. black". diff --git a/infobase/examples/legacy/gpg-daemon-launcher.sh b/infobase/examples/legacy/gpg-daemon-launcher.sh index f59c6d1f..15342fb0 100644 --- a/infobase/examples/legacy/gpg-daemon-launcher.sh +++ b/infobase/examples/legacy/gpg-daemon-launcher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # Name : gpg-daemon-launcher # Author : Chris Koeritz diff --git a/infobase/examples/os_related/OS_crusher.sh b/infobase/examples/os_related/OS_crusher.sh index 7c1683fa..ad6af3e4 100644 --- a/infobase/examples/os_related/OS_crusher.sh +++ b/infobase/examples/os_related/OS_crusher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash while true; do $0 & diff --git a/infobase/examples/os_related/set_tcp_config.sh b/infobase/examples/os_related/set_tcp_config.sh index 7fc3d76e..b4acb30c 100644 --- a/infobase/examples/os_related/set_tcp_config.sh +++ b/infobase/examples/os_related/set_tcp_config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script modifies the linux kernel for maximum tcp buffer size, which can # improve long-haul transfers over a wan. diff --git a/nucleus/applications/nechung/test_nechung.sh b/nucleus/applications/nechung/test_nechung.sh index 3acabd95..7504b06c 100644 --- a/nucleus/applications/nechung/test_nechung.sh +++ b/nucleus/applications/nechung/test_nechung.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # prints out the time it takes to run the nechung oracle a thousand times. # the number of seconds in the result should be equivalent to the number of diff --git a/nucleus/tools/solution_solvers/check_resource_ids.sh b/nucleus/tools/solution_solvers/check_resource_ids.sh index d571e6a9..feedf607 100644 --- a/nucleus/tools/solution_solvers/check_resource_ids.sh +++ b/nucleus/tools/solution_solvers/check_resource_ids.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # finds all the resource ids in resource headers (only those named the # canonical resource.h name) and discovers any duplicates. the duplicates diff --git a/nucleus/tools/solution_solvers/clean_vcxproj.sh b/nucleus/tools/solution_solvers/clean_vcxproj.sh index 8f74ba4a..41dddf94 100644 --- a/nucleus/tools/solution_solvers/clean_vcxproj.sh +++ b/nucleus/tools/solution_solvers/clean_vcxproj.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # updates a vcxproj that had been converted from prior visual studio 2005 # to the newer 2010. diff --git a/nucleus/tools/solution_solvers/extract_projects.sh b/nucleus/tools/solution_solvers/extract_projects.sh index c36525c0..9e312468 100644 --- a/nucleus/tools/solution_solvers/extract_projects.sh +++ b/nucleus/tools/solution_solvers/extract_projects.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a simple script that finds the project files listed in a solution file. diff --git a/nucleus/tools/solution_solvers/find_multilisted_projects_in_solutions.sh b/nucleus/tools/solution_solvers/find_multilisted_projects_in_solutions.sh index 75ee4a31..3ebaa4f1 100644 --- a/nucleus/tools/solution_solvers/find_multilisted_projects_in_solutions.sh +++ b/nucleus/tools/solution_solvers/find_multilisted_projects_in_solutions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script checks all the known solution files to ensure that no project file is # listed more than once in the whole set. diff --git a/nucleus/tools/solution_solvers/find_output_pathers.sh b/nucleus/tools/solution_solvers/find_output_pathers.sh index 8c080904..ad81c4a4 100644 --- a/nucleus/tools/solution_solvers/find_output_pathers.sh +++ b/nucleus/tools/solution_solvers/find_output_pathers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script locates any project files that mention the output path setting (OutputPath). # these are extra suspicious due to the problems caused for our solutions when files have the diff --git a/nucleus/tools/solution_solvers/verify_project_file.sh b/nucleus/tools/solution_solvers/verify_project_file.sh index 841bdf4d..b8f0dcfa 100644 --- a/nucleus/tools/solution_solvers/verify_project_file.sh +++ b/nucleus/tools/solution_solvers/verify_project_file.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script locates the solution that a project file belongs in and decides whether the # project file contains any bad references to projects that are outside of its solution. diff --git a/production/assign_bases/whack_odd_dlls.sh b/production/assign_bases/whack_odd_dlls.sh index 4d74f9b8..0aa0e584 100644 --- a/production/assign_bases/whack_odd_dlls.sh +++ b/production/assign_bases/whack_odd_dlls.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash DA_DIR="$RUNTIME_PATH/binaries" diff --git a/production/example_apps/shared_calendar/scripts/launch_local_cake.sh b/production/example_apps/shared_calendar/scripts/launch_local_cake.sh index 6769f974..b2bc573f 100644 --- a/production/example_apps/shared_calendar/scripts/launch_local_cake.sh +++ b/production/example_apps/shared_calendar/scripts/launch_local_cake.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" pushd $THIS_FOLDER diff --git a/production/example_apps/shared_calendar/scripts/launch_serene_cake.sh b/production/example_apps/shared_calendar/scripts/launch_serene_cake.sh index a7ca15f5..2d93c99d 100644 --- a/production/example_apps/shared_calendar/scripts/launch_serene_cake.sh +++ b/production/example_apps/shared_calendar/scripts/launch_serene_cake.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" pushd $THIS_FOLDER diff --git a/production/example_apps/zippy_maps/launch_local_cake.sh b/production/example_apps/zippy_maps/launch_local_cake.sh index c1396971..9b4a2493 100755 --- a/production/example_apps/zippy_maps/launch_local_cake.sh +++ b/production/example_apps/zippy_maps/launch_local_cake.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" pushd $THIS_FOLDER diff --git a/production/example_apps/zippy_maps/launch_serene_cake.sh b/production/example_apps/zippy_maps/launch_serene_cake.sh index e607f4d3..20a82d36 100755 --- a/production/example_apps/zippy_maps/launch_serene_cake.sh +++ b/production/example_apps/zippy_maps/launch_serene_cake.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" pushd $THIS_FOLDER diff --git a/production/example_apps/zippy_maps/prepare_project.sh b/production/example_apps/zippy_maps/prepare_project.sh index 1497ebd2..1ebc5534 100755 --- a/production/example_apps/zippy_maps/prepare_project.sh +++ b/production/example_apps/zippy_maps/prepare_project.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # bails if any step fails. function check_result() { diff --git a/production/example_apps/zippy_maps/scripts/clean_mapsdemo.sh b/production/example_apps/zippy_maps/scripts/clean_mapsdemo.sh index e2c8755e..afe3d426 100644 --- a/production/example_apps/zippy_maps/scripts/clean_mapsdemo.sh +++ b/production/example_apps/zippy_maps/scripts/clean_mapsdemo.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # some code i wrote to add to revamp that turned out to be unsuitable. # but it corrects a problem in cakelampvm v002 release that i find annoying, diff --git a/production/example_apps/zippy_maps/scripts/launch_local_cake.sh b/production/example_apps/zippy_maps/scripts/launch_local_cake.sh index 09e2cb51..450a6c2e 100644 --- a/production/example_apps/zippy_maps/scripts/launch_local_cake.sh +++ b/production/example_apps/zippy_maps/scripts/launch_local_cake.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" pushd $THIS_FOLDER/.. diff --git a/production/example_apps/zippy_maps/scripts/launch_serene_cake.sh b/production/example_apps/zippy_maps/scripts/launch_serene_cake.sh index c5c79a84..401afd21 100644 --- a/production/example_apps/zippy_maps/scripts/launch_serene_cake.sh +++ b/production/example_apps/zippy_maps/scripts/launch_serene_cake.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" pushd $THIS_FOLDER/.. diff --git a/production/example_apps/zippy_maps/scripts/prepare_project.sh b/production/example_apps/zippy_maps/scripts/prepare_project.sh index dfaf24ad..1941b4ea 100644 --- a/production/example_apps/zippy_maps/scripts/prepare_project.sh +++ b/production/example_apps/zippy_maps/scripts/prepare_project.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #hmmm: test this and make sure it's still right. #hmmm: also test that it's inclusive of all the necessary steps for success. diff --git a/production/setup_src/bundle_example/create_bundle.sh b/production/setup_src/bundle_example/create_bundle.sh index 3b4c88ef..65a875dd 100644 --- a/production/setup_src/bundle_example/create_bundle.sh +++ b/production/setup_src/bundle_example/create_bundle.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ ! -d $RUNTIME_PATH/install ]; then mkdir $RUNTIME_PATH/install; fi diff --git a/production/setup_src/whole_build_package/create_whole_build_pack.sh b/production/setup_src/whole_build_package/create_whole_build_pack.sh index 4327230b..983d4a4f 100644 --- a/production/setup_src/whole_build_package/create_whole_build_pack.sh +++ b/production/setup_src/whole_build_package/create_whole_build_pack.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Creates the application bundle of core code and support files. diff --git a/production/sites/cakelampvm.com/goog_maps_helper_mod/compare_with_install.sh b/production/sites/cakelampvm.com/goog_maps_helper_mod/compare_with_install.sh index cd46374a..857576e6 100644 --- a/production/sites/cakelampvm.com/goog_maps_helper_mod/compare_with_install.sh +++ b/production/sites/cakelampvm.com/goog_maps_helper_mod/compare_with_install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ ! -d "$HOME/apps/mapsdemo/avenger5" ]; then diff --git a/scripts/agenda/info_overload_report.sh b/scripts/agenda/info_overload_report.sh index bab3c74f..4594bd45 100644 --- a/scripts/agenda/info_overload_report.sh +++ b/scripts/agenda/info_overload_report.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # these metrics are how bogged down we are in to-do type items. diff --git a/scripts/archival/backup_arbitrary.sh b/scripts/archival/backup_arbitrary.sh index fa697b3b..419ed763 100644 --- a/scripts/archival/backup_arbitrary.sh +++ b/scripts/archival/backup_arbitrary.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # backs up a specific single directory by making an archive of it (tar.gz). # the storage location for the created archive is also specified. diff --git a/scripts/archival/backup_trac.sh b/scripts/archival/backup_trac.sh index dadb6219..891e58f4 100644 --- a/scripts/archival/backup_trac.sh +++ b/scripts/archival/backup_trac.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # backs up a trac repository into a tar.gz file. diff --git a/scripts/archival/comparator.sh b/scripts/archival/comparator.sh index fe3db5df..00f2f91e 100644 --- a/scripts/archival/comparator.sh +++ b/scripts/archival/comparator.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # compares this machine's local archives against an exemplar set. diff --git a/scripts/archival/compare_backup_drive.sh b/scripts/archival/compare_backup_drive.sh index 4f36ceb4..00839cd3 100644 --- a/scripts/archival/compare_backup_drive.sh +++ b/scripts/archival/compare_backup_drive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # compares the soapbox with the real archive to see if any older stuff might be # left behind. if it's got a less than in front, then it's only on the soapbox drive diff --git a/scripts/archival/general_updater.sh b/scripts/archival/general_updater.sh index a7721898..85183bec 100644 --- a/scripts/archival/general_updater.sh +++ b/scripts/archival/general_updater.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a script that handles synchronization of important assets from the MAJOR_ARCHIVE_SOURCES # and the SOURCECODE_HIERARCHY_LIST onto a backup drive of some sort. it will only copy folders diff --git a/scripts/archival/list_arch.sh b/scripts/archival/list_arch.sh index 82e6fb7e..fbad7d7f 100644 --- a/scripts/archival/list_arch.sh +++ b/scripts/archival/list_arch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # Name : list_arch diff --git a/scripts/archival/localz_comparator.sh b/scripts/archival/localz_comparator.sh index 32980c42..152486de 100644 --- a/scripts/archival/localz_comparator.sh +++ b/scripts/archival/localz_comparator.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" source "$FEISTY_MEOW_SCRIPTS/archival/comparator.sh" diff --git a/scripts/archival/pack_feisty_meow.sh b/scripts/archival/pack_feisty_meow.sh index cb3d4a0f..2c900d64 100644 --- a/scripts/archival/pack_feisty_meow.sh +++ b/scripts/archival/pack_feisty_meow.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" diff --git a/scripts/archival/raw_synch.sh b/scripts/archival/raw_synch.sh index 2b0a0c1c..1f759790 100644 --- a/scripts/archival/raw_synch.sh +++ b/scripts/archival/raw_synch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" diff --git a/scripts/archival/search_arch.sh b/scripts/archival/search_arch.sh index 934d50d0..fe0735f2 100644 --- a/scripts/archival/search_arch.sh +++ b/scripts/archival/search_arch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # Name : find_in_arch # Author : Chris Koeritz diff --git a/scripts/archival/serene_backer_upper.sh b/scripts/archival/serene_backer_upper.sh index 2092f2f8..adc17b74 100644 --- a/scripts/archival/serene_backer_upper.sh +++ b/scripts/archival/serene_backer_upper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # backs up crucial directories on my server into the allotted backup area. # diff --git a/scripts/archival/test_arch.sh b/scripts/archival/test_arch.sh index 1a37be2b..d84618fb 100644 --- a/scripts/archival/test_arch.sh +++ b/scripts/archival/test_arch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # Name : test_arch diff --git a/scripts/archival/unpack.sh b/scripts/archival/unpack.sh index b67ac978..499812f5 100644 --- a/scripts/archival/unpack.sh +++ b/scripts/archival/unpack.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # Name : unpack diff --git a/scripts/buildor/build_msproj.sh b/scripts/buildor/build_msproj.sh index 3cec5ac5..7d8a609c 100644 --- a/scripts/buildor/build_msproj.sh +++ b/scripts/buildor/build_msproj.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash project_name="$1"; shift if [ -z "$project_name" ]; then echo This script requires an ms project file name to build. diff --git a/scripts/buildor/buildor_add_sentinel.sh b/scripts/buildor/buildor_add_sentinel.sh index e820e0cf..8e271879 100644 --- a/scripts/buildor/buildor_add_sentinel.sh +++ b/scripts/buildor/buildor_add_sentinel.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script adds a sentinel to guard c++ implementation files (*.cpp) from # multiple inclusion. it will only add the guardian markers if the files diff --git a/scripts/buildor/buildor_count_code.sh b/scripts/buildor/buildor_count_code.sh index 3bd9fced..af2b2247 100644 --- a/scripts/buildor/buildor_count_code.sh +++ b/scripts/buildor/buildor_count_code.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TOTALS=0 diff --git a/scripts/buildor/buildor_find_active_includes.sh b/scripts/buildor/buildor_find_active_includes.sh index 6c0e6d8d..e0885943 100644 --- a/scripts/buildor/buildor_find_active_includes.sh +++ b/scripts/buildor/buildor_find_active_includes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # locates any #include declarations inside the files provided as parameters. # all the includes are turned into their bare file names and sent to standard diff --git a/scripts/buildor/buildor_find_bad.sh b/scripts/buildor/buildor_find_bad.sh index 75e3e141..b57ee256 100644 --- a/scripts/buildor/buildor_find_bad.sh +++ b/scripts/buildor/buildor_find_bad.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # looks for bad usages in source files. diff --git a/scripts/buildor/buildor_find_unused_includes.sh b/scripts/buildor/buildor_find_unused_includes.sh index edf8a282..b8dd6dfe 100644 --- a/scripts/buildor/buildor_find_unused_includes.sh +++ b/scripts/buildor/buildor_find_unused_includes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # looks for include files that have been commented out. diff --git a/scripts/buildor/buildor_make_code_writable.sh b/scripts/buildor/buildor_make_code_writable.sh index dfc88532..c63fb6d5 100644 --- a/scripts/buildor/buildor_make_code_writable.sh +++ b/scripts/buildor/buildor_make_code_writable.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" source "$FEISTY_MEOW_SCRIPTS/buildor/seek_all_source.sh" diff --git a/scripts/buildor/buildor_strip_code.sh b/scripts/buildor/buildor_strip_code.sh index dc03704a..ec956c98 100644 --- a/scripts/buildor/buildor_strip_code.sh +++ b/scripts/buildor/buildor_strip_code.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" source "$FEISTY_MEOW_SCRIPTS/buildor/seek_all_source.sh" diff --git a/scripts/buildor/check_java_logger.sh b/scripts/buildor/check_java_logger.sh index a343d9fc..2886e7a3 100644 --- a/scripts/buildor/check_java_logger.sh +++ b/scripts/buildor/check_java_logger.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # looks for occurrences of getting a Log from the log factory. when we find # one, we make sure it is using the same class name as the compilation unit. diff --git a/scripts/buildor/check_makefile.sh b/scripts/buildor/check_makefile.sh index 8210937b..668de36e 100644 --- a/scripts/buildor/check_makefile.sh +++ b/scripts/buildor/check_makefile.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash for dir in $*; do diff --git a/scripts/buildor/find_one_word_comments.sh b/scripts/buildor/find_one_word_comments.sh index cefa1a9d..661dd850 100644 --- a/scripts/buildor/find_one_word_comments.sh +++ b/scripts/buildor/find_one_word_comments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this finds any one-word commented items, which are often a sign of a formal # parameter that was commented out because it's unused. that's a suboptimal # way to fix the compiler warning for some people, and so this will find any diff --git a/scripts/buildor/gffs_builders.sh b/scripts/buildor/gffs_builders.sh index ed94db1a..170e9c83 100644 --- a/scripts/buildor/gffs_builders.sh +++ b/scripts/buildor/gffs_builders.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" diff --git a/scripts/buildor/manifester.sh b/scripts/buildor/manifester.sh index 805db54e..c56e3bcd 100644 --- a/scripts/buildor/manifester.sh +++ b/scripts/buildor/manifester.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash dir=$1 if [ -z "$dir" ]; then echo this command needs one directory as a parameter. all the exes in that diff --git a/scripts/buildor/refresh_gffs_build.sh b/scripts/buildor/refresh_gffs_build.sh index 66f1028e..b2027bcd 100644 --- a/scripts/buildor/refresh_gffs_build.sh +++ b/scripts/buildor/refresh_gffs_build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" source "$FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh" diff --git a/scripts/buildor/seek_all_source.sh b/scripts/buildor/seek_all_source.sh index a65c2db6..600138b3 100644 --- a/scripts/buildor/seek_all_source.sh +++ b/scripts/buildor/seek_all_source.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script traverses the directories passed as its parameters and locates # any files that we consider to possibly be source code. # a new variable called "SOURCES_FOUND_LIST" will be declared and will point at diff --git a/scripts/buildor/stdbuild.sh b/scripts/buildor/stdbuild.sh index 13fd1fd9..d457cfe9 100644 --- a/scripts/buildor/stdbuild.sh +++ b/scripts/buildor/stdbuild.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # stdbuild: a build script that applies to most unix make based builds # for things that you trust enough to install. this does the configure # phase, then makes the project, then installs it. diff --git a/scripts/buildor/upgrade_hoople_to_yeti.sh b/scripts/buildor/upgrade_hoople_to_yeti.sh index 0661062a..4c2d0002 100644 --- a/scripts/buildor/upgrade_hoople_to_yeti.sh +++ b/scripts/buildor/upgrade_hoople_to_yeti.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash file="$1"; shift if [ ! -f "$file" ]; then diff --git a/scripts/buildor/version_utils.sh b/scripts/buildor/version_utils.sh index 84635469..678091d7 100644 --- a/scripts/buildor/version_utils.sh +++ b/scripts/buildor/version_utils.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # version_utils: # diff --git a/scripts/buildor/vistu_find_mangled_names.sh b/scripts/buildor/vistu_find_mangled_names.sh index de35a4fe..d99d6b79 100644 --- a/scripts/buildor/vistu_find_mangled_names.sh +++ b/scripts/buildor/vistu_find_mangled_names.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script takes one microsoft compiler output file and tries to find the # mangled C++ function names contained in it. file=$1 diff --git a/scripts/buildor/vistu_locate_function.sh b/scripts/buildor/vistu_locate_function.sh index 6a49c1e5..d34c3dfe 100644 --- a/scripts/buildor/vistu_locate_function.sh +++ b/scripts/buildor/vistu_locate_function.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash filename="$1"; shift function_name="$1"; shift diff --git a/scripts/buildor/vistu_zap_msbuilds.sh b/scripts/buildor/vistu_zap_msbuilds.sh index 57c8e744..94ec88f1 100644 --- a/scripts/buildor/vistu_zap_msbuilds.sh +++ b/scripts/buildor/vistu_zap_msbuilds.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this simple script kills off some troublesome processes in preparation for a new build # with visual studio. zap_process.exe msbuild.exe diff --git a/scripts/cgi/call_version_utils.sh b/scripts/cgi/call_version_utils.sh index 893379d7..d849df55 100755 --- a/scripts/cgi/call_version_utils.sh +++ b/scripts/cgi/call_version_utils.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # processes cgi request and passes it on to the real script. diff --git a/scripts/cgi/cgi_show_file_date.sh b/scripts/cgi/cgi_show_file_date.sh index 97a42d86..dda76c66 100755 --- a/scripts/cgi/cgi_show_file_date.sh +++ b/scripts/cgi/cgi_show_file_date.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # shows the date on a particular file. diff --git a/scripts/cgi/cgi_show_referer.sh b/scripts/cgi/cgi_show_referer.sh index bc17e20b..5a7fc565 100755 --- a/scripts/cgi/cgi_show_referer.sh +++ b/scripts/cgi/cgi_show_referer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "Content-type: text/plain" echo "" echo "" diff --git a/scripts/cgi/grumble_chkrootkit.cgi b/scripts/cgi/grumble_chkrootkit.cgi index 2974fb6b..ad451130 100755 --- a/scripts/cgi/grumble_chkrootkit.cgi +++ b/scripts/cgi/grumble_chkrootkit.cgi @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # checks the rootkit report file to see if anything is listed. diff --git a/scripts/clam/badness_catcher.sh b/scripts/clam/badness_catcher.sh index cc523e8d..633950a3 100644 --- a/scripts/clam/badness_catcher.sh +++ b/scripts/clam/badness_catcher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # badness_catcher: runs the command line passed in and catches error conditions. if [ ! -z "$NOISY" ]; then diff --git a/scripts/clam/clean_subdirs.sh b/scripts/clam/clean_subdirs.sh index a438cc08..b1c4f189 100644 --- a/scripts/clam/clean_subdirs.sh +++ b/scripts/clam/clean_subdirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # travels down each subdirectory and cleans using make. function clean_subdirectories() diff --git a/scripts/clam/cpp/buildor_gen_deps.sh b/scripts/clam/cpp/buildor_gen_deps.sh index 09b328c2..f89eef01 100644 --- a/scripts/clam/cpp/buildor_gen_deps.sh +++ b/scripts/clam/cpp/buildor_gen_deps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################### # # # Name : buildor_gen_deps # diff --git a/scripts/clam/cpp/get_version.sh b/scripts/clam/cpp/get_version.sh index 4d4941e3..8821aef4 100644 --- a/scripts/clam/cpp/get_version.sh +++ b/scripts/clam/cpp/get_version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash COMPILER=$1 COMPILER_ROOT_DIR=$2 if [ "$COMPILER" = "GNU_LINUX" \ diff --git a/scripts/clam/cpp/postconditions.sh b/scripts/clam/cpp/postconditions.sh index 174529a2..82e2d23d 100644 --- a/scripts/clam/cpp/postconditions.sh +++ b/scripts/clam/cpp/postconditions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # copies the final products of the current project into the repository. # promote nothing from the built objects if this is a cleanup. diff --git a/scripts/clam/cpp/preconditions.sh b/scripts/clam/cpp/preconditions.sh index 08d0222d..4d2fe252 100644 --- a/scripts/clam/cpp/preconditions.sh +++ b/scripts/clam/cpp/preconditions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # prepares the project for compilation by creating the appropriate directories. # make sure our temp directory is there. diff --git a/scripts/clam/cpp/rc_name.sh b/scripts/clam/cpp/rc_name.sh index d069d35b..b6d84fad 100644 --- a/scripts/clam/cpp/rc_name.sh +++ b/scripts/clam/cpp/rc_name.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -f version.ini ]; then grep "root *=" version.ini | sed -e "s/root *= *//" -e "s/ *$//" fi diff --git a/scripts/clam/exit_make.sh b/scripts/clam/exit_make.sh index 5f09d695..04ac39d2 100644 --- a/scripts/clam/exit_make.sh +++ b/scripts/clam/exit_make.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # clean out temporary files that might make clam think the state is other # than a fresh build next time. rm -f $FLAG_FILES $SUB_FLAG_FILES diff --git a/scripts/clam/make_subdirs.sh b/scripts/clam/make_subdirs.sh index a7fac78f..f012b7b6 100644 --- a/scripts/clam/make_subdirs.sh +++ b/scripts/clam/make_subdirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # travels down each subdirectory and builds using make. function make_subdirectories() diff --git a/scripts/clam/target_runner.sh b/scripts/clam/target_runner.sh index c61bbc05..2cd69bd0 100644 --- a/scripts/clam/target_runner.sh +++ b/scripts/clam/target_runner.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # Name : target_runner.sh # Author : Chris Koeritz diff --git a/scripts/customize/developer/scripts/redeveloper.sh b/scripts/customize/developer/scripts/redeveloper.sh index 85f6e28c..cef28b33 100644 --- a/scripts/customize/developer/scripts/redeveloper.sh +++ b/scripts/customize/developer/scripts/redeveloper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function do_redeveloper() { diff --git a/scripts/customize/dirt/scripts/redirt.sh b/scripts/customize/dirt/scripts/redirt.sh index 4e4df5a7..f6f74ca1 100644 --- a/scripts/customize/dirt/scripts/redirt.sh +++ b/scripts/customize/dirt/scripts/redirt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function do_redirt() { diff --git a/scripts/customize/fred/java_profile.sh b/scripts/customize/fred/java_profile.sh index 7c4ce0c9..485169e2 100644 --- a/scripts/customize/fred/java_profile.sh +++ b/scripts/customize/fred/java_profile.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Chris Koeritz diff --git a/scripts/customize/fred/scripts/email/filter_grabber.sh b/scripts/customize/fred/scripts/email/filter_grabber.sh index 8d6fe229..537ceb45 100644 --- a/scripts/customize/fred/scripts/email/filter_grabber.sh +++ b/scripts/customize/fred/scripts/email/filter_grabber.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # snags my two email accounts' mail filters into a nice storage location. diff --git a/scripts/customize/fred/scripts/games/fallout_new_vegas_link_fixer.sh b/scripts/customize/fred/scripts/games/fallout_new_vegas_link_fixer.sh index 2475b432..654d9325 100644 --- a/scripts/customize/fred/scripts/games/fallout_new_vegas_link_fixer.sh +++ b/scripts/customize/fred/scripts/games/fallout_new_vegas_link_fixer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # sets up links to make fallout new vegas work properly under wine. # some mods will look for paths that are incorrectly case sensitive, and this diff --git a/scripts/customize/fred/scripts/games/gamesaver.sh b/scripts/customize/fred/scripts/games/gamesaver.sh index 9f08189a..9c7b902c 100644 --- a/scripts/customize/fred/scripts/games/gamesaver.sh +++ b/scripts/customize/fred/scripts/games/gamesaver.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a helpful script that scrapes any active game saves from wine's storage # area into a spooling saves folder for archiving. diff --git a/scripts/customize/fred/scripts/games/save_f76_pics.sh b/scripts/customize/fred/scripts/games/save_f76_pics.sh index 00c85fdb..fe0d8c57 100644 --- a/scripts/customize/fred/scripts/games/save_f76_pics.sh +++ b/scripts/customize/fred/scripts/games/save_f76_pics.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # copies the fallout 76 screenshots and images into our walrus metaverse hierarchy. diff --git a/scripts/customize/fred/scripts/games/zap_fallout.sh b/scripts/customize/fred/scripts/games/zap_fallout.sh index 9a2a5c47..4b50d14c 100644 --- a/scripts/customize/fred/scripts/games/zap_fallout.sh +++ b/scripts/customize/fred/scripts/games/zap_fallout.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # windows compatible process killer for any stray processes started as "fallout" something. diff --git a/scripts/customize/fred/scripts/games/zap_skyrim.sh b/scripts/customize/fred/scripts/games/zap_skyrim.sh index 0fec2617..af159ba1 100644 --- a/scripts/customize/fred/scripts/games/zap_skyrim.sh +++ b/scripts/customize/fred/scripts/games/zap_skyrim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # windows compatible process killer for any stray processes started as #"fallout" something. diff --git a/scripts/customize/fred/scripts/games/zap_witcher.sh b/scripts/customize/fred/scripts/games/zap_witcher.sh index e3901b22..599d8ddc 100644 --- a/scripts/customize/fred/scripts/games/zap_witcher.sh +++ b/scripts/customize/fred/scripts/games/zap_witcher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # windows compatible process killer for any stray processes started as # "witcher" something. diff --git a/scripts/customize/fred/scripts/jobby/archie_grabber.sh b/scripts/customize/fred/scripts/jobby/archie_grabber.sh index 85b3348f..3e5c96c6 100644 --- a/scripts/customize/fred/scripts/jobby/archie_grabber.sh +++ b/scripts/customize/fred/scripts/jobby/archie_grabber.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # grabs a set of archives from a set of machines. diff --git a/scripts/customize/fred/scripts/jobby/compare_clambook_dirs.sh b/scripts/customize/fred/scripts/jobby/compare_clambook_dirs.sh index edf2ba07..3804711e 100644 --- a/scripts/customize/fred/scripts/jobby/compare_clambook_dirs.sh +++ b/scripts/customize/fred/scripts/jobby/compare_clambook_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a little helper script for clambook, # which is uva's mac and which doesn't share syncthing. diff --git a/scripts/customize/fred/scripts/jobby/mirror_uva_codes.sh b/scripts/customize/fred/scripts/jobby/mirror_uva_codes.sh index e422702a..2b668434 100644 --- a/scripts/customize/fred/scripts/jobby/mirror_uva_codes.sh +++ b/scripts/customize/fred/scripts/jobby/mirror_uva_codes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # get the uva codes. mkdir -p ~/data/code_depot/uva_codes/ diff --git a/scripts/customize/fred/scripts/jobby/onedrive_backerer.sh b/scripts/customize/fred/scripts/jobby/onedrive_backerer.sh index 1adfa9bb..30257c03 100644 --- a/scripts/customize/fred/scripts/jobby/onedrive_backerer.sh +++ b/scripts/customize/fred/scripts/jobby/onedrive_backerer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # backs up the uva onedrive folder (which itself is fed from the cloud). diff --git a/scripts/customize/fred/scripts/refred.sh b/scripts/customize/fred/scripts/refred.sh index 5f981d47..18a1057a 100644 --- a/scripts/customize/fred/scripts/refred.sh +++ b/scripts/customize/fred/scripts/refred.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function do_refred() { diff --git a/scripts/customize/fred/scripts/rip_burn/create_disco_dirs.sh b/scripts/customize/fred/scripts/rip_burn/create_disco_dirs.sh index 596193cb..e79c7c69 100644 --- a/scripts/customize/fred/scripts/rip_burn/create_disco_dirs.sh +++ b/scripts/customize/fred/scripts/rip_burn/create_disco_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash FROOT=$HOME/disco diff --git a/scripts/customize/fred/scripts/vnc/restart_vnc_borker.sh b/scripts/customize/fred/scripts/vnc/restart_vnc_borker.sh index 29f2fba5..8430ff93 100644 --- a/scripts/customize/fred/scripts/vnc/restart_vnc_borker.sh +++ b/scripts/customize/fred/scripts/vnc/restart_vnc_borker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # stops the vnc server and restarts it. diff --git a/scripts/customize/fred/scripts/vnc/stop_vnc_borker.sh b/scripts/customize/fred/scripts/vnc/stop_vnc_borker.sh index bee7db84..5068398e 100644 --- a/scripts/customize/fred/scripts/vnc/stop_vnc_borker.sh +++ b/scripts/customize/fred/scripts/vnc/stop_vnc_borker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # stops the vnc server and restarts it. diff --git a/scripts/email/count_maildir.sh b/scripts/email/count_maildir.sh index 3636bd99..9858c79e 100644 --- a/scripts/email/count_maildir.sh +++ b/scripts/email/count_maildir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # counts up the files in each maildir 'cur' folder to find out how many messages are # held in each subdirectory. diff --git a/scripts/email/dump_email_headers.sh b/scripts/email/dump_email_headers.sh index b0b287fa..7dcc5560 100644 --- a/scripts/email/dump_email_headers.sh +++ b/scripts/email/dump_email_headers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export OUTF=$HOME/email_headers.txt diff --git a/scripts/email/move_spams_and_check.sh b/scripts/email/move_spams_and_check.sh index ababe18e..c45d271b 100644 --- a/scripts/email/move_spams_and_check.sh +++ b/scripts/email/move_spams_and_check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # retrieves the system's spam pile from sa-exim's spool folder and # moves it to the user's home directory. sudo access is required diff --git a/scripts/email/scan_spam.sh b/scripts/email/scan_spam.sh index 66e33192..2adeda4c 100644 --- a/scripts/email/scan_spam.sh +++ b/scripts/email/scan_spam.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ $# -lt 2 ]; then echo "This program needs two parameters. The first is the directory where spam" diff --git a/scripts/email/scavenge_emails_from_ldif.sh b/scripts/email/scavenge_emails_from_ldif.sh index 58e0f7e0..aba3cb12 100644 --- a/scripts/email/scavenge_emails_from_ldif.sh +++ b/scripts/email/scavenge_emails_from_ldif.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ $# -lt 1 ]; then echo "$(basename $0) usage: the first parameter should be an" echo "LDIF file that this script will extract email addresses from." diff --git a/scripts/files/act_on_tree.sh b/scripts/files/act_on_tree.sh index 86cf685d..e7a9528c 100644 --- a/scripts/files/act_on_tree.sh +++ b/scripts/files/act_on_tree.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # act_on_tree: performs a command on a hierarchy of directories. # diff --git a/scripts/files/cast_identify_spell.sh b/scripts/files/cast_identify_spell.sh index 73e992d8..62aa01ab 100644 --- a/scripts/files/cast_identify_spell.sh +++ b/scripts/files/cast_identify_spell.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # calls a verbose identify on each file passed to it. # this should shake loose all the metadata and display it. diff --git a/scripts/files/clean_df.sh b/scripts/files/clean_df.sh index 48d55622..ff6cdb80 100644 --- a/scripts/files/clean_df.sh +++ b/scripts/files/clean_df.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # so simple but very handy; drops any partitions that we don't care about before showing the df listing. diff --git a/scripts/files/compare_dirs.sh b/scripts/files/compare_dirs.sh index 65c4f632..3224cda6 100644 --- a/scripts/files/compare_dirs.sh +++ b/scripts/files/compare_dirs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # compares the files and directory names in two different top-level directories # and prints a report of the differences. diff --git a/scripts/files/count_files.sh b/scripts/files/count_files.sh index 847fb68e..abcb96b1 100644 --- a/scripts/files/count_files.sh +++ b/scripts/files/count_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # counts the number of files in a set of directories. # if no directories are provided, uses the current working directory. diff --git a/scripts/files/edit_files_matching.sh b/scripts/files/edit_files_matching.sh index 31662a3f..7025b722 100644 --- a/scripts/files/edit_files_matching.sh +++ b/scripts/files/edit_files_matching.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # finds all files that contain any one of the members of a list of patterns. diff --git a/scripts/files/exploder.sh b/scripts/files/exploder.sh index 6199105d..78834ddc 100644 --- a/scripts/files/exploder.sh +++ b/scripts/files/exploder.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash parm=$1 diff --git a/scripts/files/fast_counter.sh b/scripts/files/fast_counter.sh index c0d0c1fd..1f8114eb 100644 --- a/scripts/files/fast_counter.sh +++ b/scripts/files/fast_counter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # an attempt to have a "fast" counter of the number of files in a folder, or folders, which will not stray into any snapshot directories present in the filesystem. diff --git a/scripts/files/find_latest_files.sh b/scripts/files/find_latest_files.sh index 27959618..f5d0db6a 100755 --- a/scripts/files/find_latest_files.sh +++ b/scripts/files/find_latest_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # find last written files, made friendly for dell by avoiding the .clusterConfig directory. diff --git a/scripts/files/find_newest_files.sh b/scripts/files/find_newest_files.sh index 04a1944c..f335152e 100755 --- a/scripts/files/find_newest_files.sh +++ b/scripts/files/find_newest_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # find the most recently updated files in a folder. # made friendlier for dell by avoiding the .clusterConfig directory and for diff --git a/scripts/files/find_non_owned.sh b/scripts/files/find_non_owned.sh index d5818a3d..0470004e 100644 --- a/scripts/files/find_non_owned.sh +++ b/scripts/files/find_non_owned.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if test $# = 0; then echo $(basename $0): needs at least one directory name as a parameter. #hmmm: set the first parm to . instead. diff --git a/scripts/files/find_oldest_files.sh b/scripts/files/find_oldest_files.sh index f50e32cd..da273817 100755 --- a/scripts/files/find_oldest_files.sh +++ b/scripts/files/find_oldest_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # find the most antiquated files in a folder. # made friendlier for dell by avoiding the .clusterConfig directory and for diff --git a/scripts/files/find_readonly.sh b/scripts/files/find_readonly.sh index 833dd171..d16f65d6 100644 --- a/scripts/files/find_readonly.sh +++ b/scripts/files/find_readonly.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # locates read only files in the directories specified. # this is a much simpler and more efficient command than some i've seen diff --git a/scripts/files/find_same_filename.sh b/scripts/files/find_same_filename.sh index a407e7b5..5c3335ce 100644 --- a/scripts/files/find_same_filename.sh +++ b/scripts/files/find_same_filename.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # finds the same file name within a hierarchy, if possible. diff --git a/scripts/files/lesser.sh b/scripts/files/lesser.sh index 16eb3176..e8dfd66b 100644 --- a/scripts/files/lesser.sh +++ b/scripts/files/lesser.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # runs the less command but with some additional options. # diff --git a/scripts/files/list_dupes.sh b/scripts/files/list_dupes.sh index d46f43d1..d343ec38 100644 --- a/scripts/files/list_dupes.sh +++ b/scripts/files/list_dupes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #header here! diff --git a/scripts/files/list_non_dupes.sh b/scripts/files/list_non_dupes.sh index 0a3c078f..8f9456d8 100644 --- a/scripts/files/list_non_dupes.sh +++ b/scripts/files/list_non_dupes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #header here! diff --git a/scripts/files/order_file_dates.sh b/scripts/files/order_file_dates.sh index c3536543..3369176f 100644 --- a/scripts/files/order_file_dates.sh +++ b/scripts/files/order_file_dates.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash for i in $(ls -1 | sort ) ; do touch $i sleep 2 diff --git a/scripts/files/prefix_renamer.sh b/scripts/files/prefix_renamer.sh index 99a3714a..b4af5d43 100644 --- a/scripts/files/prefix_renamer.sh +++ b/scripts/files/prefix_renamer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ $# -lt 1 ]; then echo $0: requires at least one argument as the file prefix to remove or replace. diff --git a/scripts/files/recursive_renlower.sh b/scripts/files/recursive_renlower.sh index b4ea3c79..292222a2 100644 --- a/scripts/files/recursive_renlower.sh +++ b/scripts/files/recursive_renlower.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #need to support multiple names. for i; do #old find "$1" -type d -depth -print -exec perl $FEISTY_MEOW_SCRIPTS/renlower.pl {}/* ';' diff --git a/scripts/files/recursive_whack_dupes.sh b/scripts/files/recursive_whack_dupes.sh index 3978f3fe..97437d1c 100644 --- a/scripts/files/recursive_whack_dupes.sh +++ b/scripts/files/recursive_whack_dupes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################### # # diff --git a/scripts/files/remove_here_if_not_there.sh b/scripts/files/remove_here_if_not_there.sh index 403a0f7c..0cf51746 100644 --- a/scripts/files/remove_here_if_not_there.sh +++ b/scripts/files/remove_here_if_not_there.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function print_instructions() { diff --git a/scripts/files/replace_spaces_with_underscores.sh b/scripts/files/replace_spaces_with_underscores.sh index 3cbcfa89..b0312b9a 100644 --- a/scripts/files/replace_spaces_with_underscores.sh +++ b/scripts/files/replace_spaces_with_underscores.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # takes names given to it and replaces any spaces or other gnarly characters with underscores. diff --git a/scripts/files/show_directory_listing.sh b/scripts/files/show_directory_listing.sh index 4dd46148..01636912 100644 --- a/scripts/files/show_directory_listing.sh +++ b/scripts/files/show_directory_listing.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # shows the directory passed as the first parameter. # if there's a second parameter, it's used for a filtering pattern. diff --git a/scripts/files/show_just_biggies.sh b/scripts/files/show_just_biggies.sh index 782ab15e..bc185a49 100644 --- a/scripts/files/show_just_biggies.sh +++ b/scripts/files/show_just_biggies.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # iterates through the directories or files passed on the command line and does a summary disk usage, but only the # things measurable in gigabytes, terabytes, or larger are shown. the smaller items are just omitted (so anything diff --git a/scripts/files/show_links.sh b/scripts/files/show_links.sh index a05f1f49..524ba47b 100644 --- a/scripts/files/show_links.sh +++ b/scripts/files/show_links.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$1" ]; then echo You must supply a file name to strip out just the links from... exit 2 diff --git a/scripts/files/spacem.sh b/scripts/files/spacem.sh index b73a68c5..05ec50e6 100644 --- a/scripts/files/spacem.sh +++ b/scripts/files/spacem.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function spacem_out() { diff --git a/scripts/files/squish_directories.sh b/scripts/files/squish_directories.sh index 4d1b75cc..01c818ea 100644 --- a/scripts/files/squish_directories.sh +++ b/scripts/files/squish_directories.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # archives the files / directories passed on the command line into an archive # file tagged with a datestamp, and removes the original files / directories. diff --git a/scripts/files/strip_html_code.sh b/scripts/files/strip_html_code.sh index ebbd81d9..1e8b8c33 100644 --- a/scripts/files/strip_html_code.sh +++ b/scripts/files/strip_html_code.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # strips out html tags and sends results to standard input. function strip_html_code() diff --git a/scripts/files/whack_dupes.sh b/scripts/files/whack_dupes.sh index ac20b3d9..9d88b2b1 100644 --- a/scripts/files/whack_dupes.sh +++ b/scripts/files/whack_dupes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # whacks the files in the current directory which are duplicates of the # files in the directory passed as a parameter. diff --git a/scripts/files/whack_non_dupes.sh b/scripts/files/whack_non_dupes.sh index c5a81a09..9ef3eaa9 100644 --- a/scripts/files/whack_non_dupes.sh +++ b/scripts/files/whack_non_dupes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # whacks the files in the current directory which are NOT duplicates of the # files in the directory passed as a parameter. diff --git a/scripts/generator/build_variables.sh b/scripts/generator/build_variables.sh index bd2afb03..e3675449 100644 --- a/scripts/generator/build_variables.sh +++ b/scripts/generator/build_variables.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # diff --git a/scripts/generator/jenkins_builder.sh b/scripts/generator/jenkins_builder.sh index 3b67d6e3..8a65f240 100644 --- a/scripts/generator/jenkins_builder.sh +++ b/scripts/generator/jenkins_builder.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # got really tired of seeing this as a big long single line in jenkins, plus # it kept breaking and was a huge pain to edit. so now it's in a much more diff --git a/scripts/generator/minimize_feisty_meow.sh b/scripts/generator/minimize_feisty_meow.sh index 3f16cc94..d19076a7 100644 --- a/scripts/generator/minimize_feisty_meow.sh +++ b/scripts/generator/minimize_feisty_meow.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # cleans up the generated files that most people don't use. # this includes some static libraries and all of the tests, as well as diff --git a/scripts/generator/next_version.sh b/scripts/generator/next_version.sh index 61c5d410..79d33f51 100644 --- a/scripts/generator/next_version.sh +++ b/scripts/generator/next_version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # increments the build version number. diff --git a/scripts/generator/show_version.sh b/scripts/generator/show_version.sh index 5091b645..521889e2 100644 --- a/scripts/generator/show_version.sh +++ b/scripts/generator/show_version.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # increments the build version number. diff --git a/scripts/generator/whack_build.sh b/scripts/generator/whack_build.sh index b050ca38..c90606e0 100644 --- a/scripts/generator/whack_build.sh +++ b/scripts/generator/whack_build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #hmmm: nice to set an interrupt handler for ctrl-c, to catch a break and send it to the cleanup of the crudfile. diff --git a/scripts/marks/create_marks.sh b/scripts/marks/create_marks.sh index b8b79ea4..0bfdda49 100644 --- a/scripts/marks/create_marks.sh +++ b/scripts/marks/create_marks.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script rebuilds the bookmarks files. it requires the variables: # WEBBED_SITES: points at the root of the web hierarchy. diff --git a/scripts/modem/dial_modem.sh b/scripts/modem/dial_modem.sh index d1a88120..8d431c1f 100644 --- a/scripts/modem/dial_modem.sh +++ b/scripts/modem/dial_modem.sh @@ -1,2 +1,2 @@ -#!/bin/bash +#!/usr/bin/env bash sudo gnome-ppp diff --git a/scripts/modem/fix_modem_perms.sh b/scripts/modem/fix_modem_perms.sh index d46bb26e..d100f49b 100644 --- a/scripts/modem/fix_modem_perms.sh +++ b/scripts/modem/fix_modem_perms.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash sudo chmod 666 /dev/ttyACM0 diff --git a/scripts/modem/reinstall_dgcmodem_driver.sh b/scripts/modem/reinstall_dgcmodem_driver.sh index c0199c1a..c854e541 100644 --- a/scripts/modem/reinstall_dgcmodem_driver.sh +++ b/scripts/modem/reinstall_dgcmodem_driver.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash THIS_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )" pushd $THIS_FOLDER/modem_driver/* diff --git a/scripts/multimedia/maybe_zap_pic.sh b/scripts/multimedia/maybe_zap_pic.sh index 9b2c667b..675507e7 100644 --- a/scripts/multimedia/maybe_zap_pic.sh +++ b/scripts/multimedia/maybe_zap_pic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # goes through a list of pictures, first showing the picture to you, # and then nagging you for each one if you want to delete it or not. diff --git a/scripts/multimedia/pic_importer.sh b/scripts/multimedia/pic_importer.sh index fc0fc9f5..821c7953 100644 --- a/scripts/multimedia/pic_importer.sh +++ b/scripts/multimedia/pic_importer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash num=1 while true; do import -silent -window root $HOME/bg_image_$num.jpg diff --git a/scripts/multimedia/play_random.sh b/scripts/multimedia/play_random.sh index a5df0093..e4cf9e89 100644 --- a/scripts/multimedia/play_random.sh +++ b/scripts/multimedia/play_random.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash hostfile=/etc/HOSTNAME if [ ! -f "$hostfile" ]; then hostfile=/etc/hostname diff --git a/scripts/multimedia/randomly_play.sh b/scripts/multimedia/randomly_play.sh index 0003ded1..bc9ac333 100644 --- a/scripts/multimedia/randomly_play.sh +++ b/scripts/multimedia/randomly_play.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this decides randomly whether to invoke the play_random script or not. NOISE_IT_UP=$(expr $RANDOM / 91) diff --git a/scripts/multimedia/sound_play.sh b/scripts/multimedia/sound_play.sh index 55c471c5..dcce0f33 100644 --- a/scripts/multimedia/sound_play.sh +++ b/scripts/multimedia/sound_play.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # play the sound files specified. diff --git a/scripts/multimedia/webcam_snagger.sh b/scripts/multimedia/webcam_snagger.sh index 9dcde0d8..42f49144 100644 --- a/scripts/multimedia/webcam_snagger.sh +++ b/scripts/multimedia/webcam_snagger.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # the file name to be found on the remote site is expected to be named # using the prefix and suffix below. diff --git a/scripts/opensim/allow_opensim_firewall_access.sh b/scripts/opensim/allow_opensim_firewall_access.sh index 0583ce64..ac3befde 100644 --- a/scripts/opensim/allow_opensim_firewall_access.sh +++ b/scripts/opensim/allow_opensim_firewall_access.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # main port sudo ufw allow 9000 diff --git a/scripts/opensim/backup_opensim.sh b/scripts/opensim/backup_opensim.sh index 508cad3f..17659155 100644 --- a/scripts/opensim/backup_opensim.sh +++ b/scripts/opensim/backup_opensim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a simple script that backs up the opensim database assets. gridusername="$1"; shift diff --git a/scripts/opensim/backup_osgrid.sh b/scripts/opensim/backup_osgrid.sh index 959aabf4..87619f39 100644 --- a/scripts/opensim/backup_osgrid.sh +++ b/scripts/opensim/backup_osgrid.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a simple script that backs up the opensim database assets. #hmmm: need to parameterize for the database name and secrets file and all that. diff --git a/scripts/opensim/find_opensim_ports.sh b/scripts/opensim/find_opensim_ports.sh index 6ef74ada..81eccfd3 100644 --- a/scripts/opensim/find_opensim_ports.sh +++ b/scripts/opensim/find_opensim_ports.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" diff --git a/scripts/opensim/grid_land_lister.sh b/scripts/opensim/grid_land_lister.sh index a4909e30..4da9856d 100644 --- a/scripts/opensim/grid_land_lister.sh +++ b/scripts/opensim/grid_land_lister.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # creates a file with the information about land on the # simulator. diff --git a/scripts/opensim/list_sims.sh b/scripts/opensim/list_sims.sh index d78ab3fc..eba9c6f4 100644 --- a/scripts/opensim/list_sims.sh +++ b/scripts/opensim/list_sims.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # we guess at some nice values to use in the list. if these are too small, we'll # adjust them before printing anything. diff --git a/scripts/opensim/maybe_restart_opensim.sh b/scripts/opensim/maybe_restart_opensim.sh index f6d5e7a4..b7325b02 100644 --- a/scripts/opensim/maybe_restart_opensim.sh +++ b/scripts/opensim/maybe_restart_opensim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this locates the main opensim process if possible. if we cannot find it, # then the process is restarted. diff --git a/scripts/opensim/opensim_utils.sh b/scripts/opensim/opensim_utils.sh index 130e9cdd..3e440abb 100644 --- a/scripts/opensim/opensim_utils.sh +++ b/scripts/opensim/opensim_utils.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a collection of scripts that assist in managing an opensim server. # it uses the "screen" utility to manage opensimulator instances. diff --git a/scripts/opensim/remove_lsl_guids.sh b/scripts/opensim/remove_lsl_guids.sh index 66b5a61b..9b1d9068 100644 --- a/scripts/opensim/remove_lsl_guids.sh +++ b/scripts/opensim/remove_lsl_guids.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a handy script for fixing file names imported using second inventory. # the names have a hideous long guid as part of them by default. diff --git a/scripts/opensim/run_opensim.sh b/scripts/opensim/run_opensim.sh index 674786f9..30c38aea 100644 --- a/scripts/opensim/run_opensim.sh +++ b/scripts/opensim/run_opensim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script starts up all the opensim processes (0.6.9 era) using the screen # utility. then the processes can all be accessed when desired, rather than # needing to be started in 5 or so separate windows. diff --git a/scripts/opensim/run_osgrid.sh b/scripts/opensim/run_osgrid.sh index b03f62b1..2ed7b41e 100644 --- a/scripts/opensim/run_osgrid.sh +++ b/scripts/opensim/run_osgrid.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script starts up the opensim process for osgrid (0.6.9 era) using the # screen utility. note that this will only be useful for an osgrid-attached # sim server. diff --git a/scripts/opensim/scan_opensim_log.sh b/scripts/opensim/scan_opensim_log.sh index 602441d4..8df9e703 100644 --- a/scripts/opensim/scan_opensim_log.sh +++ b/scripts/opensim/scan_opensim_log.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # an example for windows with the log located under program files. #PROGFILES="c:/Program Files" diff --git a/scripts/opensim/stop_opensim.sh b/scripts/opensim/stop_opensim.sh index 9b885e35..00332019 100644 --- a/scripts/opensim/stop_opensim.sh +++ b/scripts/opensim/stop_opensim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script stops a 0.6.9 era opensimulator system that was started by # the run_opensim or run_osgrid script. this will work for either case. diff --git a/scripts/opensim/stop_osgrid.sh b/scripts/opensim/stop_osgrid.sh index 036e5841..47584198 100644 --- a/scripts/opensim/stop_osgrid.sh +++ b/scripts/opensim/stop_osgrid.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script stops a 0.6.9 era opensimulator system that was started by # the run_opensim or run_osgrid script. this will work for either case. diff --git a/scripts/opensim/zap_opensim_main.sh b/scripts/opensim/zap_opensim_main.sh index a21d497e..616cb8d3 100644 --- a/scripts/opensim/zap_opensim_main.sh +++ b/scripts/opensim/zap_opensim_main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash main_pid=$( ps wuax | grep "[0-9] mono OpenSim.exe" | grep -vi screen | sed -e "s/$USER *\([0-9][0-9]*\).*/\1/" ) diff --git a/scripts/opensim/zap_opensims.sh b/scripts/opensim/zap_opensims.sh index 243523c4..c8e89057 100644 --- a/scripts/opensim/zap_opensims.sh +++ b/scripts/opensim/zap_opensims.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" diff --git a/scripts/pictures/batch_convert_msp2png.sh b/scripts/pictures/batch_convert_msp2png.sh index 84d7c53c..d29592d7 100644 --- a/scripts/pictures/batch_convert_msp2png.sh +++ b/scripts/pictures/batch_convert_msp2png.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # converts ancient microsoft paint files to PNG format using recoil. # arose from a question on askubuntu: http://askubuntu.com/questions/881412/how-can-i-convert-really-old-files-in-microsoft-paint-format-msp-to-a-usabl diff --git a/scripts/pictures/shrink_pics.sh b/scripts/pictures/shrink_pics.sh index 941f7972..15e15477 100644 --- a/scripts/pictures/shrink_pics.sh +++ b/scripts/pictures/shrink_pics.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # picture shrinker, thanks to dang. diff --git a/scripts/processes/find_user.sh b/scripts/processes/find_user.sh index 66358cf7..9d8f82c4 100644 --- a/scripts/processes/find_user.sh +++ b/scripts/processes/find_user.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if test $# -lt 1; then echo $(basename $0): requires a user id for which to search.; \exit 1; diff --git a/scripts/processes/findme.sh b/scripts/processes/findme.sh index 97a3d915..24f2e88b 100644 --- a/scripts/processes/findme.sh +++ b/scripts/processes/findme.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # finds the current user's processes in the process list. snuser=$USER # if the unix variable for the user is not set, try the dos variable. diff --git a/scripts/processes/goodbye.sh b/scripts/processes/goodbye.sh index 99501f10..28da4f56 100644 --- a/scripts/processes/goodbye.sh +++ b/scripts/processes/goodbye.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # just prints a message before terminal exit. diff --git a/scripts/processes/list_process_names.sh b/scripts/processes/list_process_names.sh index 4808169a..c98b8d9e 100644 --- a/scripts/processes/list_process_names.sh +++ b/scripts/processes/list_process_names.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # looks for process names for a particular user. if no user is specified, then this # assumes we should look for the current user's processes. diff --git a/scripts/processes/process_manager.sh b/scripts/processes/process_manager.sh index 48737e47..762e43a6 100644 --- a/scripts/processes/process_manager.sh +++ b/scripts/processes/process_manager.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # diff --git a/scripts/processes/pszap.sh b/scripts/processes/pszap.sh index 93b137b9..9ecbb3c0 100644 --- a/scripts/processes/pszap.sh +++ b/scripts/processes/pszap.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$1" ]; then echo "Did not find a parameter to seek out and whack from the process list." exit 2 diff --git a/scripts/processes/show_hot_ones.sh b/scripts/processes/show_hot_ones.sh index 786bf174..2d4279c6 100644 --- a/scripts/processes/show_hot_ones.sh +++ b/scripts/processes/show_hot_ones.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # shows the current processes ordered by cpu usage. diff --git a/scripts/rev_control/branchy.sh b/scripts/rev_control/branchy.sh index 98e21387..f690e372 100644 --- a/scripts/rev_control/branchy.sh +++ b/scripts/rev_control/branchy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # branchy: lists the branches active on all of the paths provided on the command line. # if no directory is specified, this defaults to operating on the current directory. diff --git a/scripts/rev_control/checkin.sh b/scripts/rev_control/checkin.sh index 7d734187..9d71f0cf 100644 --- a/scripts/rev_control/checkin.sh +++ b/scripts/rev_control/checkin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # checkin: checks in all the folders present in the REPOSITORY_LIST variable. diff --git a/scripts/rev_control/compact_git.sh b/scripts/rev_control/compact_git.sh index 8f13c057..ed9ed167 100644 --- a/scripts/rev_control/compact_git.sh +++ b/scripts/rev_control/compact_git.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # compresses the git archive in the folder specified. diff --git a/scripts/rev_control/diff_repos.sh b/scripts/rev_control/diff_repos.sh index 340a5105..741434bb 100644 --- a/scripts/rev_control/diff_repos.sh +++ b/scripts/rev_control/diff_repos.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # does differences on a set of folders checked out from subversion or git. # this can take a directory as parameter, but will default to the current diff --git a/scripts/rev_control/getem.sh b/scripts/rev_control/getem.sh index e0fcdef3..de908230 100644 --- a/scripts/rev_control/getem.sh +++ b/scripts/rev_control/getem.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # gets any updates for the repository folders present in the REPOSITORY_LIST variable. diff --git a/scripts/rev_control/git_info.sh b/scripts/rev_control/git_info.sh index c5eb747f..cfdc457f 100644 --- a/scripts/rev_control/git_info.sh +++ b/scripts/rev_control/git_info.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # author: Duane Johnson # email: duane.johnson@gmail.com diff --git a/scripts/rev_control/git_scruncher.sh b/scripts/rev_control/git_scruncher.sh index e541da45..98b6129a 100644 --- a/scripts/rev_control/git_scruncher.sh +++ b/scripts/rev_control/git_scruncher.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" diff --git a/scripts/rev_control/puffer.sh b/scripts/rev_control/puffer.sh index 9ccf03f8..eaea0405 100644 --- a/scripts/rev_control/puffer.sh +++ b/scripts/rev_control/puffer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # puffer: "puffs out" all of the folders present in the REPOSITORY_LIST # variable, which causes the repo to be merged with its remote versions. diff --git a/scripts/rev_control/push_repo_downstream.sh b/scripts/rev_control/push_repo_downstream.sh index 0135a404..2108c58d 100644 --- a/scripts/rev_control/push_repo_downstream.sh +++ b/scripts/rev_control/push_repo_downstream.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script works on a specialized type of git checkout that has been configured # to push to a "downstream" repository, while still pulling from its normal origin. diff --git a/scripts/rev_control/quick_git_release.sh b/scripts/rev_control/quick_git_release.sh index b2e5b595..09448b10 100644 --- a/scripts/rev_control/quick_git_release.sh +++ b/scripts/rev_control/quick_git_release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a simple and quick method for making a new release, merging it into the main branch, # and tagging it with a new tag for the release. diff --git a/scripts/rev_control/rcheckin.sh b/scripts/rev_control/rcheckin.sh index 185de49e..c6fe11fb 100644 --- a/scripts/rev_control/rcheckin.sh +++ b/scripts/rev_control/rcheckin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # checks in the updated files in a set of folders checked out from subversion # or git. this can take a directory as parameter, but will default to the # current working directory. all the directories under the passed directory diff --git a/scripts/rev_control/report_new.sh b/scripts/rev_control/report_new.sh index 8ecb8715..9b9544b3 100644 --- a/scripts/rev_control/report_new.sh +++ b/scripts/rev_control/report_new.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script reports files that are not checked in yet in a set of folders. # it works with subversion only, since git handles new files well whereas # subversion ignores them until you tell it about them. this script can take diff --git a/scripts/rev_control/resolve_svn.sh b/scripts/rev_control/resolve_svn.sh index 15acfd4a..18ef5a81 100644 --- a/scripts/rev_control/resolve_svn.sh +++ b/scripts/rev_control/resolve_svn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # resolves a tree conflict by accepting the "working" version, # which effectively makes your current change the accepted one. diff --git a/scripts/rev_control/rgetem.sh b/scripts/rev_control/rgetem.sh index 11b9edd4..28f3e5f4 100644 --- a/scripts/rev_control/rgetem.sh +++ b/scripts/rev_control/rgetem.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a simple script for updating a set of folders from subversion or git. # this can take a directory as parameter, but will default to the current # working directory. all the directories under the passed directory will diff --git a/scripts/rev_control/rpuffer.sh b/scripts/rev_control/rpuffer.sh index d67332d3..298923b9 100644 --- a/scripts/rev_control/rpuffer.sh +++ b/scripts/rev_control/rpuffer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this "puffs out" the repositories that it finds. what this means is that # any git repositories found will have all of their remote state updated (by diff --git a/scripts/rev_control/svnapply.sh b/scripts/rev_control/svnapply.sh index 2c4d2f07..fa15c8b1 100644 --- a/scripts/rev_control/svnapply.sh +++ b/scripts/rev_control/svnapply.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Applies arbitrary commands to any svn status. # diff --git a/scripts/rev_control/version_control.sh b/scripts/rev_control/version_control.sh index 02bf827a..67238cae 100644 --- a/scripts/rev_control/version_control.sh +++ b/scripts/rev_control/version_control.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # these are helper functions for doing localized revision control. # this script should be sourced into other scripts that use it. diff --git a/scripts/rip_burn/blu_burn.sh b/scripts/rip_burn/blu_burn.sh index 67e57452..550a81de 100644 --- a/scripts/rip_burn/blu_burn.sh +++ b/scripts/rip_burn/blu_burn.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # burns a bluray or dvd data disc image onto a physical medium. diff --git a/scripts/rip_burn/blu_image.sh b/scripts/rip_burn/blu_image.sh index 04212e54..daf560d7 100644 --- a/scripts/rip_burn/blu_image.sh +++ b/scripts/rip_burn/blu_image.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # make a dvd data disc image suitable for burning on bluray. diff --git a/scripts/rip_burn/checker_report.sh b/scripts/rip_burn/checker_report.sh index 270a0620..ed76dd65 100644 --- a/scripts/rip_burn/checker_report.sh +++ b/scripts/rip_burn/checker_report.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # checker_report: runs the checker utility against all files in a directory, # in such a way that the file count can be very high without blowing its diff --git a/scripts/rip_burn/dvd_image.sh b/scripts/rip_burn/dvd_image.sh index 791d7cba..b022bdef 100644 --- a/scripts/rip_burn/dvd_image.sh +++ b/scripts/rip_burn/dvd_image.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # makes a playable dvd movie disc image from a folder. # the folder has to contain a ripped and decrypted DVD. diff --git a/scripts/schedule/cal.sh b/scripts/schedule/cal.sh index 0938e1db..5820412d 100644 --- a/scripts/schedule/cal.sh +++ b/scripts/schedule/cal.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # cal: a nicer interface to the unix cal program. function our_date() diff --git a/scripts/schedule/start_calendar.sh b/scripts/schedule/start_calendar.sh index 51e9a376..d06b78f0 100644 --- a/scripts/schedule/start_calendar.sh +++ b/scripts/schedule/start_calendar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash perl $FEISTY_MEOW_SCRIPTS/schedule/generate_reminders.pl echo "(bash $FEISTY_MEOW_SCRIPTS/schedule/start_calendar.sh) &>/dev/null" | at 4:20am diff --git a/scripts/security/check_website.sh b/scripts/security/check_website.sh index dd0d553a..9e5dce19 100644 --- a/scripts/security/check_website.sh +++ b/scripts/security/check_website.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash nmap -O -sS -F -P0 -T Aggressive $1 diff --git a/scripts/security/cool_permissionator.sh b/scripts/security/cool_permissionator.sh index c6f9bd86..54c07cc5 100644 --- a/scripts/security/cool_permissionator.sh +++ b/scripts/security/cool_permissionator.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a library file for redoing file ownership and permissions as we feel is # appropriate. this approach is a little bit specific to our way of doing diff --git a/scripts/security/dos_perm.sh b/scripts/security/dos_perm.sh index 66d7039a..471115c9 100644 --- a/scripts/security/dos_perm.sh +++ b/scripts/security/dos_perm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # dos_perm: gives a directory the most open set of permissions # available to the dos/windoze attrib command. diff --git a/scripts/security/easy_perm.sh b/scripts/security/easy_perm.sh index 472aa6f3..89dcd19d 100644 --- a/scripts/security/easy_perm.sh +++ b/scripts/security/easy_perm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # easyperm: traverses directory trees and sets the permissions to a completely # accessible value (rwxrwxrwx for directories and rw-rw-rw- for files). diff --git a/scripts/security/exe_perm.sh b/scripts/security/exe_perm.sh index d3b68143..a992f30d 100644 --- a/scripts/security/exe_perm.sh +++ b/scripts/security/exe_perm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # exeperm sets the permissions to an executable value, as for a directory of # binary files. (rwxr-xr-x for both directories and files) diff --git a/scripts/security/group_perm.sh b/scripts/security/group_perm.sh index 17731032..0ff716b6 100644 --- a/scripts/security/group_perm.sh +++ b/scripts/security/group_perm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # group_perm: traverses directory trees and sets the permissions to allow the # associated group "rw" on files and "rwx" on directories. diff --git a/scripts/security/harsh_perm.sh b/scripts/security/harsh_perm.sh index fbce59fb..40c6b091 100644 --- a/scripts/security/harsh_perm.sh +++ b/scripts/security/harsh_perm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # harshperm traverses directory trees and sets the permissions to a restricted # value (rwx------ for directories and rw------- for files). diff --git a/scripts/security/khandroma_tunnels.sh b/scripts/security/khandroma_tunnels.sh index 529a4da5..ec24b729 100644 --- a/scripts/security/khandroma_tunnels.sh +++ b/scripts/security/khandroma_tunnels.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tunnels to the khandroma machine for vnc access to the win7 box and for the jenkins # server. diff --git a/scripts/security/normal_perm.sh b/scripts/security/normal_perm.sh index 2e641a0d..666ca70d 100644 --- a/scripts/security/normal_perm.sh +++ b/scripts/security/normal_perm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # normal_perm: traverses directory trees and sets the permissions to a # standard accessibility value. for fred, this is rwxr-xr-x for directories # and rw-r--r-- for files. diff --git a/scripts/security/password_functions.sh b/scripts/security/password_functions.sh index 490b94d8..cb0b9359 100644 --- a/scripts/security/password_functions.sh +++ b/scripts/security/password_functions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a set of useful functions for managing operations with passwords. # a set of very simple operations, but the file needs to be protected from diff --git a/scripts/security/poodle_check.sh b/scripts/security/poodle_check.sh index b58eb133..a0bdba0c 100644 --- a/scripts/security/poodle_check.sh +++ b/scripts/security/poodle_check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash host="$1"; shift port="$1"; shift diff --git a/scripts/security/screened_tunneler.sh b/scripts/security/screened_tunneler.sh index 62301ccd..354558dd 100644 --- a/scripts/security/screened_tunneler.sh +++ b/scripts/security/screened_tunneler.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script manages one ssh tunnel inside a named 'screen' session. ############## diff --git a/scripts/security/shellshock_test.sh b/scripts/security/shellshock_test.sh index 82a2b794..7880c0a8 100644 --- a/scripts/security/shellshock_test.sh +++ b/scripts/security/shellshock_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash EXITCODE=0 # this file was downloaded with this command: diff --git a/scripts/security/show_all_cert_chains.sh b/scripts/security/show_all_cert_chains.sh index f36415a0..1c6f630a 100644 --- a/scripts/security/show_all_cert_chains.sh +++ b/scripts/security/show_all_cert_chains.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # displays every certificate in a PEM file that has a whole certificate chain. # this is surprisingly annoying to get anything to output, so we codified it. diff --git a/scripts/security/tell_zooty_our_ip.sh b/scripts/security/tell_zooty_our_ip.sh index e35228cd..346d5599 100644 --- a/scripts/security/tell_zooty_our_ip.sh +++ b/scripts/security/tell_zooty_our_ip.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script connects to a remote machine and records the IP address of the # local machine there. this enables the machine's owner to connect back to # the system even if the IP address floats around (changes). diff --git a/scripts/security/tunnel_zooty_example.sh b/scripts/security/tunnel_zooty_example.sh index 4384a7df..1b56d9f4 100644 --- a/scripts/security/tunnel_zooty_example.sh +++ b/scripts/security/tunnel_zooty_example.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script makes a tunnel for fred's SMTP traffic. #hmmm: move this script to fred's custom stuff diff --git a/scripts/security/uva_web_proxy.sh b/scripts/security/uva_web_proxy.sh index 9ef3b8d4..f3de338b 100644 --- a/scripts/security/uva_web_proxy.sh +++ b/scripts/security/uva_web_proxy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script makes a tunnel for SMTP traffic and others. a remote ssh server # is required. this is especially useful for routing around firewalls using # a web proxy like squid. when used for SMTP, it ensures that none of the diff --git a/scripts/show_db/call_movie_seeker.sh b/scripts/show_db/call_movie_seeker.sh index 1240c709..5ddabc89 100755 --- a/scripts/show_db/call_movie_seeker.sh +++ b/scripts/show_db/call_movie_seeker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # processes cgi request and passes it on to the real script. diff --git a/scripts/show_db/call_movie_stripper.sh b/scripts/show_db/call_movie_stripper.sh index c8dd9fa1..19e5baaa 100755 --- a/scripts/show_db/call_movie_stripper.sh +++ b/scripts/show_db/call_movie_stripper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # processes cgi request and passes it on to the real script. diff --git a/scripts/show_db/call_show_stripper.sh b/scripts/show_db/call_show_stripper.sh index 7a662475..f7a03e6d 100755 --- a/scripts/show_db/call_show_stripper.sh +++ b/scripts/show_db/call_show_stripper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # processes cgi request and passes it on to the real script. show_name="$(echo $QUERY_STRING | sed -e "s/^[^=][^=]*=\(.*\)$/\1/" | sed -e "s/\+/ /g")" diff --git a/scripts/show_db/movie_seeker.sh b/scripts/show_db/movie_seeker.sh index eccd0e58..60d3f24f 100755 --- a/scripts/show_db/movie_seeker.sh +++ b/scripts/show_db/movie_seeker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$1" -o -z "$2" ]; then echo You must supply a file name that has a movie database in it and a movie echo or show name to search for. Example: diff --git a/scripts/show_db/movie_stripper.sh b/scripts/show_db/movie_stripper.sh index b8c961ff..68055fcd 100755 --- a/scripts/show_db/movie_stripper.sh +++ b/scripts/show_db/movie_stripper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$1" ]; then echo You must supply a file name to strip out the unique movie or show echo names from... diff --git a/scripts/show_db/show_stripper.sh b/scripts/show_db/show_stripper.sh index ee719ee3..08593e6c 100755 --- a/scripts/show_db/show_stripper.sh +++ b/scripts/show_db/show_stripper.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -z "$1" -o -z "$2" ]; then echo "This program accepts a file name with CSV formatted movie database" echo "information and extracts a particular show's episodes. You need to" diff --git a/scripts/site_avenger/act_on_apps.sh b/scripts/site_avenger/act_on_apps.sh index 32cb32ec..c0c0f784 100644 --- a/scripts/site_avenger/act_on_apps.sh +++ b/scripts/site_avenger/act_on_apps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # run a command on all of the existing apps folders, but only if they appear to have site avenger projects in them. diff --git a/scripts/site_avenger/avcoreup.sh b/scripts/site_avenger/avcoreup.sh index 437e5134..6ae7042d 100644 --- a/scripts/site_avenger/avcoreup.sh +++ b/scripts/site_avenger/avcoreup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Kevin Wentworth # Author: Chris Koeritz diff --git a/scripts/site_avenger/config/default.app b/scripts/site_avenger/config/default.app index 9220cce5..3df7ab29 100644 --- a/scripts/site_avenger/config/default.app +++ b/scripts/site_avenger/config/default.app @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # provides the default values for the variables used in our site management scripts. diff --git a/scripts/site_avenger/config/ecocor6.app b/scripts/site_avenger/config/ecocor6.app index a2d80ecd..e6df674c 100644 --- a/scripts/site_avenger/config/ecocor6.app +++ b/scripts/site_avenger/config/ecocor6.app @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # override for ecocor6 to set the theme. diff --git a/scripts/site_avenger/config/mapsdemo.app b/scripts/site_avenger/config/mapsdemo.app index 06de0e6e..b6faf9a3 100644 --- a/scripts/site_avenger/config/mapsdemo.app +++ b/scripts/site_avenger/config/mapsdemo.app @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a special override for the mapsdemo site, which we want to put in as # a subdomain of the cakelampvm domain. diff --git a/scripts/site_avenger/powerup.sh b/scripts/site_avenger/powerup.sh index de9310c1..857e88d9 100644 --- a/scripts/site_avenger/powerup.sh +++ b/scripts/site_avenger/powerup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Kevin Wentworth # Author: Chris Koeritz diff --git a/scripts/site_avenger/revamp_cakelampvm_v002.sh b/scripts/site_avenger/revamp_cakelampvm_v002.sh index bfbcb194..8d859862 100644 --- a/scripts/site_avenger/revamp_cakelampvm_v002.sh +++ b/scripts/site_avenger/revamp_cakelampvm_v002.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # fixes the cakelampvm permissions according to the way. diff --git a/scripts/site_avenger/revamp_cakelampvm_v003.sh b/scripts/site_avenger/revamp_cakelampvm_v003.sh index 5a230615..e16cf639 100644 --- a/scripts/site_avenger/revamp_cakelampvm_v003.sh +++ b/scripts/site_avenger/revamp_cakelampvm_v003.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # fixes the cakelampvm permissions according to the way. diff --git a/scripts/site_avenger/satis-refresh.sh b/scripts/site_avenger/satis-refresh.sh index eb002dde..c89c3f75 100644 --- a/scripts/site_avenger/satis-refresh.sh +++ b/scripts/site_avenger/satis-refresh.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Kevin Wentworth diff --git a/scripts/site_avenger/shared_site_mgr.sh b/scripts/site_avenger/shared_site_mgr.sh index 0964b49f..050eb555 100644 --- a/scripts/site_avenger/shared_site_mgr.sh +++ b/scripts/site_avenger/shared_site_mgr.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Chris Koeritz # Author: Kevin Wentworth diff --git a/scripts/site_avenger/sitepush.sh b/scripts/site_avenger/sitepush.sh index c07d9453..ea3cde41 100644 --- a/scripts/site_avenger/sitepush.sh +++ b/scripts/site_avenger/sitepush.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Kevin Wentworth # Author: Chris Koeritz diff --git a/scripts/site_avenger/siteup.sh b/scripts/site_avenger/siteup.sh index d1b183d7..d791d83f 100644 --- a/scripts/site_avenger/siteup.sh +++ b/scripts/site_avenger/siteup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Kevin Wentworth # Author: Chris Koeritz diff --git a/scripts/site_avenger/standup.sh b/scripts/site_avenger/standup.sh index 3395d5ac..b24feaed 100644 --- a/scripts/site_avenger/standup.sh +++ b/scripts/site_avenger/standup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Chris Koeritz diff --git a/scripts/site_avenger/teardown.sh b/scripts/site_avenger/teardown.sh index c332986a..f8f7b404 100644 --- a/scripts/site_avenger/teardown.sh +++ b/scripts/site_avenger/teardown.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this performs the inverse operation of standup, by relying on the # remove_domain and remove_apache_site scripts. diff --git a/scripts/system/add_apache_site.sh b/scripts/system/add_apache_site.sh index c8c53a49..136c42d6 100644 --- a/scripts/system/add_apache_site.sh +++ b/scripts/system/add_apache_site.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # creates a new apache website for a specified domain. diff --git a/scripts/system/add_domain.sh b/scripts/system/add_domain.sh index dfce5360..3fc09d9f 100644 --- a/scripts/system/add_domain.sh +++ b/scripts/system/add_domain.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this set of functions serve the main purpose of adding new domains or # subdomains to the bind9 DNS server on the current host. it is currently diff --git a/scripts/system/add_swap_mount.sh b/scripts/system/add_swap_mount.sh index dc14f84e..384370eb 100644 --- a/scripts/system/add_swap_mount.sh +++ b/scripts/system/add_swap_mount.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # auto-find the scripts, since we might want to run this as sudo. export THISDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )" # obtain the script's working directory. diff --git a/scripts/system/check_64bit.sh b/scripts/system/check_64bit.sh index 0943b5fd..96e781ad 100644 --- a/scripts/system/check_64bit.sh +++ b/scripts/system/check_64bit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # just tests whether a linux box can handle 64-bit operating systems. diff --git a/scripts/system/check_mount.sh b/scripts/system/check_mount.sh index 281d52bd..8a71df13 100644 --- a/scripts/system/check_mount.sh +++ b/scripts/system/check_mount.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # check_mount: tests a mount point to see if it is already mounted, and if # it is not, mounts it. if [ -z "$1" ]; then diff --git a/scripts/system/common_sysadmin.sh b/scripts/system/common_sysadmin.sh index a29dd6c0..1213bdc9 100644 --- a/scripts/system/common_sysadmin.sh +++ b/scripts/system/common_sysadmin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is a library of functions shared by scripts in the system folder. # diff --git a/scripts/system/cpu_heat_logger.sh b/scripts/system/cpu_heat_logger.sh index 41e15937..082b7eda 100644 --- a/scripts/system/cpu_heat_logger.sh +++ b/scripts/system/cpu_heat_logger.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # queries the cpu temperature using the sensors system (must be installed) and writes the # results to an ongoing log file as well as standard output. diff --git a/scripts/system/dump_log.sh b/scripts/system/dump_log.sh index 0311de8b..3750bd17 100644 --- a/scripts/system/dump_log.sh +++ b/scripts/system/dump_log.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # dumps out the log files according to the provided pattern, but makes sure that # each one is dumped in chronological order, and any compressed logs are unpacked diff --git a/scripts/system/find_dhcp_unassigned.sh b/scripts/system/find_dhcp_unassigned.sh index 99cd810a..5f5a7f8d 100644 --- a/scripts/system/find_dhcp_unassigned.sh +++ b/scripts/system/find_dhcp_unassigned.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # note that this will only work on the machine with the dhcp server, and # it only works with our range for unassigned, unknown machines, which is diff --git a/scripts/system/is_reboot_needed.sh b/scripts/system/is_reboot_needed.sh index 26d65a78..9dd4a892 100644 --- a/scripts/system/is_reboot_needed.sh +++ b/scripts/system/is_reboot_needed.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # returns an error value if reboot IS required due to some recent # updates. otherwise returns a normal zero exit value indicating diff --git a/scripts/system/list_old_linux_packages.sh b/scripts/system/list_old_linux_packages.sh index caa957c3..15a5976f 100644 --- a/scripts/system/list_old_linux_packages.sh +++ b/scripts/system/list_old_linux_packages.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash bash $FEISTY_MEOW_SCRIPTS/system/list_packages.sh linux-image |grep "^rc" | grep -v extra | awk '{print $2 }' diff --git a/scripts/system/list_packages.sh b/scripts/system/list_packages.sh index d7317fbb..af4addfd 100644 --- a/scripts/system/list_packages.sh +++ b/scripts/system/list_packages.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" diff --git a/scripts/system/moodle_updater.sh b/scripts/system/moodle_updater.sh index 3faa6e72..c2d4a28a 100644 --- a/scripts/system/moodle_updater.sh +++ b/scripts/system/moodle_updater.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # updates the moodle install, assuming all paths are at the default. diff --git a/scripts/system/osx_cd_mounter.sh b/scripts/system/osx_cd_mounter.sh index 22335b78..4ce84895 100644 --- a/scripts/system/osx_cd_mounter.sh +++ b/scripts/system/osx_cd_mounter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # keeps trying to mount the cd on a mac mini to overcome # a new bug in itunes seen as of osx leopard upgrade. diff --git a/scripts/system/redo_nvidia_driver.sh b/scripts/system/redo_nvidia_driver.sh index fc10b0f5..260ebdde 100644 --- a/scripts/system/redo_nvidia_driver.sh +++ b/scripts/system/redo_nvidia_driver.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################### # # diff --git a/scripts/system/remove_apache_site.sh b/scripts/system/remove_apache_site.sh index 4465a759..b95bc9a6 100644 --- a/scripts/system/remove_apache_site.sh +++ b/scripts/system/remove_apache_site.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # uninstalls the apache website for a specified domain. diff --git a/scripts/system/remove_domain.sh b/scripts/system/remove_domain.sh index f1048b74..bb5f9622 100644 --- a/scripts/system/remove_domain.sh +++ b/scripts/system/remove_domain.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # performs the inverse function of add_domain by deconfiguring a domain # in bind. the domain needs to have been set up by add_domain, or this will diff --git a/scripts/system/report_disk_type.sh b/scripts/system/report_disk_type.sh index 7bfa0b4d..0e8a9cad 100644 --- a/scripts/system/report_disk_type.sh +++ b/scripts/system/report_disk_type.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # reports whether a disk is spinning physical media or solid state. # if no drive is specified, then /dev/sda is the default. diff --git a/scripts/system/screeno.sh b/scripts/system/screeno.sh index e88c5aed..19707bcc 100644 --- a/scripts/system/screeno.sh +++ b/scripts/system/screeno.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # screeno: a simple alias for putting something in the background where its logs can be # tended by the screen utility. diff --git a/scripts/system/show_diagnostics.sh b/scripts/system/show_diagnostics.sh index d664e695..5e74b6af 100644 --- a/scripts/system/show_diagnostics.sh +++ b/scripts/system/show_diagnostics.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" diff --git a/scripts/system/show_disks.sh b/scripts/system/show_disks.sh index 2a32bb6d..ef635569 100644 --- a/scripts/system/show_disks.sh +++ b/scripts/system/show_disks.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # shows fdisk report for "real" devices. diff --git a/scripts/system/synch_to_mtp_device.sh b/scripts/system/synch_to_mtp_device.sh index 254ed7f1..ef683c56 100644 --- a/scripts/system/synch_to_mtp_device.sh +++ b/scripts/system/synch_to_mtp_device.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash sourcedir="$1"; shift targetdir="$1"; shift diff --git a/scripts/system/time_tracker.sh b/scripts/system/time_tracker.sh index 15e30db7..ec38e3ec 100644 --- a/scripts/system/time_tracker.sh +++ b/scripts/system/time_tracker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # some helpful functions for counting a named duration. diff --git a/scripts/system/update_system_time.sh b/scripts/system/update_system_time.sh index 01efc95e..a65ea503 100644 --- a/scripts/system/update_system_time.sh +++ b/scripts/system/update_system_time.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # a simple time update script that traps output from rdate, since we # get a lot of noise even when a successful update occurs, to whit: diff --git a/scripts/system/write_uptime_report.sh b/scripts/system/write_uptime_report.sh index 0220b334..392825da 100644 --- a/scripts/system/write_uptime_report.sh +++ b/scripts/system/write_uptime_report.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # writes an uptime report to a file in the home directory which is named # after the current machine's hostname. source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" diff --git a/scripts/testing/rounder.sh b/scripts/testing/rounder.sh index 797dfbb8..dba0e377 100644 --- a/scripts/testing/rounder.sh +++ b/scripts/testing/rounder.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # sample the first argument to make sure it's not empty. # we can't know if the command is really valid or not, but it at least diff --git a/scripts/testing/run_test_and_verify.sh b/scripts/testing/run_test_and_verify.sh index 6ca02e6f..82353749 100644 --- a/scripts/testing/run_test_and_verify.sh +++ b/scripts/testing/run_test_and_verify.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a simple unit test component that takes three parameters: the test to run, the # input file to give that test, and the expected correct output file from the test. diff --git a/scripts/testing/squelch_unless_error.sh b/scripts/testing/squelch_unless_error.sh index c26fd94b..12f9bb86 100644 --- a/scripts/testing/squelch_unless_error.sh +++ b/scripts/testing/squelch_unless_error.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # redirects standard out and standard error output to temp files and runs all # the parameters to this script as a command. diff --git a/scripts/testing/test_array_sifter.sh b/scripts/testing/test_array_sifter.sh index b50d0818..0e3124a8 100644 --- a/scripts/testing/test_array_sifter.sh +++ b/scripts/testing/test_array_sifter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # tests the array sifter methods. diff --git a/scripts/testing/test_assoc_array.sh b/scripts/testing/test_assoc_array.sh index 8da04248..d74fce2c 100644 --- a/scripts/testing/test_assoc_array.sh +++ b/scripts/testing/test_assoc_array.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## diff --git a/scripts/testing/test_time_tracker.sh b/scripts/testing/test_time_tracker.sh index 981d3231..78ef0a98 100644 --- a/scripts/testing/test_time_tracker.sh +++ b/scripts/testing/test_time_tracker.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tests out the time tracking methods. diff --git a/scripts/text/average_line_length.sh b/scripts/text/average_line_length.sh index da344382..0e144eee 100644 --- a/scripts/text/average_line_length.sh +++ b/scripts/text/average_line_length.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash file="$1"; shift if [ -z "$file" -o ! -f "$file" ]; then diff --git a/scripts/text/csv_compare.sh b/scripts/text/csv_compare.sh index db305ef0..5b96d9bb 100644 --- a/scripts/text/csv_compare.sh +++ b/scripts/text/csv_compare.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script takes two CSV files and ensures that they have the same # contents, regardless of the order. diff --git a/scripts/text/csv_to_array.sh b/scripts/text/csv_to_array.sh index 021891d0..b741e0a4 100644 --- a/scripts/text/csv_to_array.sh +++ b/scripts/text/csv_to_array.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################ diff --git a/scripts/text/grep_two_patterns.sh b/scripts/text/grep_two_patterns.sh index 248bc514..3a0e26c9 100644 --- a/scripts/text/grep_two_patterns.sh +++ b/scripts/text/grep_two_patterns.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash folder="$1"; shift pat1="$1"; shift diff --git a/scripts/text/interactive_underscores_to_spaces.sh b/scripts/text/interactive_underscores_to_spaces.sh index 9d414526..bb320811 100644 --- a/scripts/text/interactive_underscores_to_spaces.sh +++ b/scripts/text/interactive_underscores_to_spaces.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" diff --git a/scripts/text/nechung_signature.sh b/scripts/text/nechung_signature.sh index 3ee02f4b..f7ad2eb9 100644 --- a/scripts/text/nechung_signature.sh +++ b/scripts/text/nechung_signature.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "
" echo "
" echo "--
" diff --git a/scripts/text/obscenity_check.sh b/scripts/text/obscenity_check.sh index 09cf0957..340a1f25 100644 --- a/scripts/text/obscenity_check.sh +++ b/scripts/text/obscenity_check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script looks for any files containing offensive language, but one must # fill out the list of inappropriate language to censor. this list is stored diff --git a/scripts/text/parse_csv_line.h b/scripts/text/parse_csv_line.h index 5f86d0d5..123648fa 100644 --- a/scripts/text/parse_csv_line.h +++ b/scripts/text/parse_csv_line.h @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################################################################ # This function parses a line from a CSV file (you pass the line as the # argument) into elements in an array. The CSV elements must be enclosed diff --git a/scripts/text/search_text.sh b/scripts/text/search_text.sh index c0abee90..27b7429e 100644 --- a/scripts/text/search_text.sh +++ b/scripts/text/search_text.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash seek="$1"; shift if [ -z "$seek" ]; then echo This script needs a pattern to look for in the current directory. diff --git a/scripts/text/smoove_lists.sh b/scripts/text/smoove_lists.sh index 01dbd225..674a5d42 100644 --- a/scripts/text/smoove_lists.sh +++ b/scripts/text/smoove_lists.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #list schmoover? #smoove_lists source target diff --git a/scripts/tty/findterm.sh b/scripts/tty/findterm.sh index 6d4c8f13..02946677 100644 --- a/scripts/tty/findterm.sh +++ b/scripts/tty/findterm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this shell file locates a terminal of the user whose # login id is specified as the first parameter. diff --git a/scripts/tty/keep_awake_process.sh b/scripts/tty/keep_awake_process.sh index 683575b1..dd91e946 100644 --- a/scripts/tty/keep_awake_process.sh +++ b/scripts/tty/keep_awake_process.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This program is meant to be started by the program keep_awake and has # the guts that are meant to execute inside of a semi-perpetual loop. diff --git a/scripts/tty/lockem.sh b/scripts/tty/lockem.sh index fb781b14..de9cd947 100644 --- a/scripts/tty/lockem.sh +++ b/scripts/tty/lockem.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Can be used to lock up a terminal screen until the user enters the correct # password. Pretty sturdy. Store your password in the file "PASSWORD_FILE", diff --git a/scripts/tty/terminal_titler.sh b/scripts/tty/terminal_titler.sh index ce736d42..ac95f2e6 100644 --- a/scripts/tty/terminal_titler.sh +++ b/scripts/tty/terminal_titler.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" source "$FEISTY_MEOW_SCRIPTS/core/common.alias" diff --git a/scripts/wine/remake_wine_links.sh b/scripts/wine/remake_wine_links.sh index 6805073a..012f636d 100644 --- a/scripts/wine/remake_wine_links.sh +++ b/scripts/wine/remake_wine_links.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # fixes the links that wine makes to our home folder under linux. that's a really bad # practice that exposes all one's private files to the wine subsystem. dumb. diff --git a/testkit/doc/rebrand.sh b/testkit/doc/rebrand.sh index 093a1f1f..7ef5e94b 100644 --- a/testkit/doc/rebrand.sh +++ b/testkit/doc/rebrand.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # makes a new copy of the testkit reference with branding info installed. diff --git a/testkit/examples/blank_test.sh b/testkit/examples/blank_test.sh index aa77ac3e..384d6262 100644 --- a/testkit/examples/blank_test.sh +++ b/testkit/examples/blank_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Test: Blank # Author: Fill ItIn diff --git a/testkit/library/establish_environment.sh b/testkit/library/establish_environment.sh index b49810a9..8865f67f 100644 --- a/testkit/library/establish_environment.sh +++ b/testkit/library/establish_environment.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Supports the TestKit with a few handy functions and many variables. # diff --git a/testkit/library/gen_cert_from_ca.sh b/testkit/library/gen_cert_from_ca.sh index d068ea0e..08c6acc4 100644 --- a/testkit/library/gen_cert_from_ca.sh +++ b/testkit/library/gen_cert_from_ca.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #hmmm: NOT ported to testkit yet. diff --git a/testkit/library/generate_csr_from_existing_key.sh b/testkit/library/generate_csr_from_existing_key.sh index bcd8ac8d..7a8b8bf8 100644 --- a/testkit/library/generate_csr_from_existing_key.sh +++ b/testkit/library/generate_csr_from_existing_key.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash privkey="$1"; shift subject="$1"; shift diff --git a/testkit/library/helper_methods.sh b/testkit/library/helper_methods.sh index 1bdb6294..6b0329ae 100644 --- a/testkit/library/helper_methods.sh +++ b/testkit/library/helper_methods.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # useful functions that are somewhat general. these are not needed for # the basic setup of the test environment, but they are used by other diff --git a/testkit/library/process_configuration.sh b/testkit/library/process_configuration.sh index c2d894f3..55e207ef 100644 --- a/testkit/library/process_configuration.sh +++ b/testkit/library/process_configuration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Processes the XSEDE tools config file to turn variables listed in the # file into exported variables in the environment. diff --git a/testkit/library/produce_test_package.sh b/testkit/library/produce_test_package.sh index b6a93f62..b623c735 100644 --- a/testkit/library/produce_test_package.sh +++ b/testkit/library/produce_test_package.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Creates an archive from the test scripts. # diff --git a/testkit/library/random_ids_manager.sh b/testkit/library/random_ids_manager.sh index ad938818..70e1ee45 100644 --- a/testkit/library/random_ids_manager.sh +++ b/testkit/library/random_ids_manager.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # an unfinished idea for how to manage identifiers that are randomly # generated but are also uniquely identified for later use. diff --git a/testkit/library/runner_functions.sh b/testkit/library/runner_functions.sh index c6d6ade5..ee910823 100644 --- a/testkit/library/runner_functions.sh +++ b/testkit/library/runner_functions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # assorted useful ways of running executables. # diff --git a/testkit/library/tear_down_test_infrastructure.sh b/testkit/library/tear_down_test_infrastructure.sh index b1e38b7d..6c01949c 100644 --- a/testkit/library/tear_down_test_infrastructure.sh +++ b/testkit/library/tear_down_test_infrastructure.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Tears down the demo users previously set up for multi-user testing. # diff --git a/testkit/prepare_tools.sh b/testkit/prepare_tools.sh index 97aa6f24..df7446ce 100644 --- a/testkit/prepare_tools.sh +++ b/testkit/prepare_tools.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Chris Koeritz # diff --git a/testkit/shunit/example_shunit_test.sh b/testkit/shunit/example_shunit_test.sh index 8931aef1..ce43b25d 100644 --- a/testkit/shunit/example_shunit_test.sh +++ b/testkit/shunit/example_shunit_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # An example of using shunit2. # diff --git a/testkit/test_driver.sh b/testkit/test_driver.sh index db058683..50193b26 100755 --- a/testkit/test_driver.sh +++ b/testkit/test_driver.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script runs through all the known tests by performing a test sweep. # It should claim that all tests succeeded for a new build/configuration/etc. diff --git a/testkit/tools/bandwidth/set_tcp_config.sh b/testkit/tools/bandwidth/set_tcp_config.sh index 06d675d7..71fec4e4 100644 --- a/testkit/tools/bandwidth/set_tcp_config.sh +++ b/testkit/tools/bandwidth/set_tcp_config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this script modifies the linux kernel for maximum tcp buffer size, which can # improve long-haul transfers over a wan.