From: Thomas Walker Lynch Date: Thu, 25 Sep 2025 11:19:05 +0000 (+0000) Subject: fixes typo X-Git-Url: https://git.reasoningtechnology.com/usr/lib/python2.7/inspect.py?a=commitdiff_plain;h=9dccc5f1962801082f71ad5460aa201778a37ea0;p=subu fixes typo --- diff --git a/developer/source/mount/masu__map_own_all.sh b/developer/source/mount/masu__map_own_all.sh index 00bd96e..79d035b 100755 --- a/developer/source/mount/masu__map_own_all.sh +++ b/developer/source/mount/masu__map_own_all.sh @@ -9,7 +9,7 @@ fi user=$1 # Get the list of sub-users by calling the user_list_subu_home.sh script -subu_list=$(./masu__subu_dir_llst.sh "$user") +subu_list=$(./masu__subu_dir_list.sh "$user") # Check if we received any sub-users if [ -z "$subu_list" ]; then diff --git a/developer/source/mount/masu__subu_dir_list.sh b/developer/source/mount/masu__subu_dir_list.sh new file mode 100755 index 0000000..6b24a53 --- /dev/null +++ b/developer/source/mount/masu__subu_dir_list.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Function to list sub-users in /home//subu +subu_list() { + local user=$1 + local subu_dir="/home/$user/subu" + + if [ ! -d "/home/$user" ]; then + echo "Error: /home/$user does not exist!" + return 1 + fi + + if [ ! -d "$subu_dir" ]; then + echo "Error: $subu_dir does not exist!" + return 1 + fi + + # List all sub-users in the subu directory + find "$subu_dir" -maxdepth 1 -mindepth 1 -type d -exec basename {} \; +} + +# Run the function with the user as an argument +subu_list "$1" diff --git a/developer/source/mount/masu__subu_dir_llst.sh b/developer/source/mount/masu__subu_dir_llst.sh deleted file mode 100755 index 6b24a53..0000000 --- a/developer/source/mount/masu__subu_dir_llst.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -# Function to list sub-users in /home//subu -subu_list() { - local user=$1 - local subu_dir="/home/$user/subu" - - if [ ! -d "/home/$user" ]; then - echo "Error: /home/$user does not exist!" - return 1 - fi - - if [ ! -d "$subu_dir" ]; then - echo "Error: $subu_dir does not exist!" - return 1 - fi - - # List all sub-users in the subu directory - find "$subu_dir" -maxdepth 1 -mindepth 1 -type d -exec basename {} \; -} - -# Run the function with the user as an argument -subu_list "$1"