aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-06-13 04:51:35 +0200
committerache <ache@ache.one>2019-06-13 04:51:35 +0200
commit37ad4e13646ad5942537697d1a670710a957061c (patch)
treed1af966cdb4fa015da0279c2e8561bbd8444c657
parent🤦 (diff)
Fix random autoWall
-rwxr-xr-xautoWall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoWall.sh b/autoWall.sh
index d015853..36432cb 100755
--- a/autoWall.sh
+++ b/autoWall.sh
@@ -77,7 +77,7 @@ for ligne in `cat ${wallDir}/listDirWall`
do
if [ `ls "${wallDir}/$ligne" | wc -l` -gt $randWall ]
then
- wall=${wallDir}/$ligne`ls ${wallDir}/$ligne | head -n $randWall | tail -n 1`
+ wall=${wallDir}/$ligne`ls ${wallDir}/$ligne | head -n $(($randWall + 1)) | tail -n 1`
echo ${wall} > ~/.actWall
cmd=$(printf "${cmd}" ${wall})
echo ${cmd}