Skip to content

Commit

Permalink
Merge pull request haugene#599 from haplo/fix-pass-args-to-hook-scripts
Browse files Browse the repository at this point in the history
Fix arg passing to start/stop script hooks
  • Loading branch information
haugene authored Sep 16, 2018
2 parents 1d79f8e + 88ea8ea commit 8ed4a37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions transmission/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
if [ -x /scripts/transmission-pre-start.sh ]
then
echo "Executing /scripts/transmission-pre-start.sh"
/scripts/transmission-pre-start.sh "$*"
/scripts/transmission-pre-start.sh "$@"
echo "/scripts/transmission-pre-start.sh returned $?"
fi

Expand Down Expand Up @@ -79,7 +79,7 @@ fi
if [ -x /scripts/transmission-post-start.sh ]
then
echo "Executing /scripts/transmission-post-start.sh"
/scripts/transmission-post-start.sh "$*"
/scripts/transmission-post-start.sh "$@"
echo "/scripts/transmission-post-start.sh returned $?"
fi

Expand Down
4 changes: 2 additions & 2 deletions transmission/stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if [ -x /scripts/transmission-pre-stop.sh ]
then
echo "Executing /scripts/transmission-pre-stop.sh"
/scripts/transmission-pre-stop.sh "$*"
/scripts/transmission-pre-stop.sh "$@"
echo "/scripts/transmission-pre-stop.sh returned $?"
fi

Expand All @@ -14,6 +14,6 @@ kill $(pidof transmission-daemon)
if [ -x /scripts/transmission-post-stop.sh ]
then
echo "Executing /scripts/transmission-post-stop.sh"
/scripts/transmission-post-stop.sh "$*"
/scripts/transmission-post-stop.sh "$@"
echo "/scripts/transmission-post-stop.sh returned $?"
fi

0 comments on commit 8ed4a37

Please sign in to comment.