Skip to content

Commit

Permalink
chore: update all file and code
Browse files Browse the repository at this point in the history
  • Loading branch information
rulanugrh committed Oct 2, 2024
1 parent 61490d5 commit 186f9c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/testing_shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
run: |
d=$(date "+%Y-%m-%d")
file="/tmp/test.txt.$$" && touch --date "$d" "$file"
echo $file && find . -iname "*.sh" -type f -newer $file > output.txt
for i in $(cat output.txt); do chmod +x $i && bash $i; done
echo $file && find . -type d \( -path ./playground -o -path ./simple_project -o -path ./basic -o -path ./usefull_command \) -prune -o -iname "*.sh" -type f -newer $file > output.txt
for i in $(cat output.txt); do if [ -d "$i" ]; then echo "$i adalah folder."; elif [ -f "$i" ]; chmod +x "$i" && bash "$i"; else echo "$i tidak ditemukan atau bukan file/folder."; fi; done
- run: echo "status ${{ job.status }}"
2 changes: 1 addition & 1 deletion advance/00_regex/regex.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
awk -e '$1 ~ /p[o]/ {print $0}' buah.txt
awk -e '$1 ~ /p[o]/ {print $0}' ./advance/00_regex/buah.txt
8 changes: 4 additions & 4 deletions advance/03_user_administration/user_administration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ check_os() {
esac
}

if ["$(dpkg -l | awk '/sudo/ {print }' | wc -l)" -le 1]; then
check_os()
sleep 5
if [ "$(dpkg -l | awk '/sudo/ {print }' | wc -l)" -le 1 ];
then
check_os
fi

echo -e "create new user kyora ..."
useradd kyora && echo -e "1\n\1n" | passwd kyora
sleep 2

echo -e "add kyora to sudoers ..."
usermod -aG sudo kyora

0 comments on commit 186f9c0

Please sign in to comment.