PDA

View Full Version : allow .sh extension?


clancpu
07-11-2006, 04:48 AM
For phpbb, its in the contrib dir.

The code in the file is below


#!/bin/bash
#
# Remove all those annoying ^M characters that Winblows editor's like to add
# from all files in the current directory and all subdirectories.
#
# Written by: Jonathan Haase.
#
# UPDATE: 7/31/2001: fix so that it doesn't touch things in the images directory
#
# UPDATE: 12/15/2003: Fix so that it doesn't touch any "non-text" files
#

find . > FILELIST.$$
grep -sv FILELIST FILELIST.$$ > FILELIST2.$$
grep -sv $(basename $0) FILELIST2.$$ > FILELIST.$$
grep -sv "^\.$" FILELIST.$$ > FILELIST2.$$
file -f FILELIST2.$$ |grep text | sed -e 's/^\([^\:]*\)\:.*$/\1/' > FILELIST
file -f FILELIST2.$$ |grep -sv text | sed -e 's/^\([^\:]*\)\:.*$/Not Modifying file: \1/'
rm FILELIST2.$$
rm FILELIST.$$

for i in $(cat FILELIST); do
if [ -f $i ]; then
sed -e s/
//g $i > $i.tmp
mv $i.tmp $i
fi
done
rm FILELIST

clancpu
07-11-2006, 05:05 AM
nvm issue resolved.

clancpu
07-13-2006, 04:11 AM
Attempting to install wikitiki but a required .sh ext is not allowed...

UnlimitedMB
07-13-2006, 01:06 PM
You do not need to upload the .sh files.

clancpu
07-13-2006, 07:42 PM
It will work without it? Then whats the point of having a .sh file? (Noob here)

UnlimitedMB
07-13-2006, 09:24 PM
Yes it will work fine without it.