From aa3c39c42b175ba42febe295be6da7fae47713a8 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 2 Feb 2017 17:39:53 -0500 Subject: [PATCH] customization good and more cleaning moving out an old script and relocating some to more rational folders. --- scripts/files/dir_zero_entries.sh | 28 ------------------- scripts/{files => rip_burn}/checker_report.sh | 0 scripts/{files => security}/dos_perm.sh | 0 scripts/{files => security}/easy_perm.sh | 0 scripts/{files => security}/exe_perm.sh | 0 scripts/{files => security}/fix_game_perms.sh | 0 scripts/{files => security}/harsh_perm.sh | 0 scripts/{files => security}/normal_perm.sh | 0 scripts/testing/run_test_and_verify.sh | 2 +- 9 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 scripts/files/dir_zero_entries.sh rename scripts/{files => rip_burn}/checker_report.sh (100%) rename scripts/{files => security}/dos_perm.sh (100%) rename scripts/{files => security}/easy_perm.sh (100%) rename scripts/{files => security}/exe_perm.sh (100%) rename scripts/{files => security}/fix_game_perms.sh (100%) rename scripts/{files => security}/harsh_perm.sh (100%) rename scripts/{files => security}/normal_perm.sh (100%) diff --git a/scripts/files/dir_zero_entries.sh b/scripts/files/dir_zero_entries.sh deleted file mode 100644 index 0f4ec900..00000000 --- a/scripts/files/dir_zero_entries.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -for i in $*; do - dirname="$i" - - # make sure this is not a subversion or CVS directory. - if [[ $i =~ .*\.svn.* || $i =~ .*CVS.* ]]; then -#echo directory matched svn or cvs folder - continue; - fi - - # only operate on existent dirs. - if [ ! -d "$i" ]; then - continue; - fi - - entries=($(ls -1 "$i")) - ent_len=${#entries[*]} -#echo dir $i has entries: -#echo ${entries[*]} -#echo len is $ent_len - if [ $ent_len -eq 0 ]; then - # this directory has nothing! -#echo "has zero ents!" - echo $i - fi -done - diff --git a/scripts/files/checker_report.sh b/scripts/rip_burn/checker_report.sh similarity index 100% rename from scripts/files/checker_report.sh rename to scripts/rip_burn/checker_report.sh diff --git a/scripts/files/dos_perm.sh b/scripts/security/dos_perm.sh similarity index 100% rename from scripts/files/dos_perm.sh rename to scripts/security/dos_perm.sh diff --git a/scripts/files/easy_perm.sh b/scripts/security/easy_perm.sh similarity index 100% rename from scripts/files/easy_perm.sh rename to scripts/security/easy_perm.sh diff --git a/scripts/files/exe_perm.sh b/scripts/security/exe_perm.sh similarity index 100% rename from scripts/files/exe_perm.sh rename to scripts/security/exe_perm.sh diff --git a/scripts/files/fix_game_perms.sh b/scripts/security/fix_game_perms.sh similarity index 100% rename from scripts/files/fix_game_perms.sh rename to scripts/security/fix_game_perms.sh diff --git a/scripts/files/harsh_perm.sh b/scripts/security/harsh_perm.sh similarity index 100% rename from scripts/files/harsh_perm.sh rename to scripts/security/harsh_perm.sh diff --git a/scripts/files/normal_perm.sh b/scripts/security/normal_perm.sh similarity index 100% rename from scripts/files/normal_perm.sh rename to scripts/security/normal_perm.sh diff --git a/scripts/testing/run_test_and_verify.sh b/scripts/testing/run_test_and_verify.sh index cb037459..6ca02e6f 100644 --- a/scripts/testing/run_test_and_verify.sh +++ b/scripts/testing/run_test_and_verify.sh @@ -9,5 +9,5 @@ to_run="$1"; shift input_file="$1"; shift answer_file="$1"; shift -eval "$to_run" < "$input_file" | bash "$FEISTY_MEOW_SCRIPTS/unit_test/verify_correct_input.sh" "$answer_file" +eval "$to_run" < "$input_file" | bash "$FEISTY_MEOW_SCRIPTS/testing/verify_correct_input.sh" "$answer_file" -- 2.34.1