Skip to content

Commit

Permalink
Add an emoji for status
Browse files Browse the repository at this point in the history
  • Loading branch information
Moe-hacker committed Dec 11, 2024
1 parent 8619f40 commit d7c7407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ else
fi
if [ "$STATUS" = "stopped" ]; then
"$MODDIR"/start.sh
sed -i 's|\[.*\]|[status=running]|' "$MODDIR/module.prop"
sed -i 's|\[.*\]|[status=running😉]|' "$MODDIR/module.prop"
else
"$MODDIR"/stop.sh
sed -i 's|\[.*\]|[status=stopped]|' "$MODDIR/module.prop"
sed -i 's|\[.*\]|[status=stopped😇]|' "$MODDIR/module.prop"
fi
7 changes: 2 additions & 5 deletions inotify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ done
case "$events" in
d)
"$MODULEDIR"/start.sh
sed -i "6cdescription=[ on : $NOW ] $DESCRIPTION" "$MODULEDIR"/module.prop
sed -i "6cdescription=[status=running😉] $DESCRIPTION" "$MODULEDIR"/module.prop
;;
n)
"$MODULEDIR"/stop.sh
sed -i "6cdescription=[ off : $NOW ] $DESCRIPTION" "$MODULEDIR"/module.prop
sed -i "6cdescription=[status=stopped😇] $DESCRIPTION" "$MODULEDIR"/module.prop
;;
*)
:
Expand All @@ -45,6 +45,3 @@ echo "$pid" > "$MODULEDIR"/.pidfile
sleep 15
rm -f "$MODULEDIR"/.pidfile
) &


sed -i "6cdescription=[ inotify-pid=$pid ] Start/stop the container in real-time through this module" "$MODULEDIR"/module.prop

0 comments on commit d7c7407

Please sign in to comment.