1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/script/revert.sh
Andrew Tridgell ef2e26c91b first public release of samba4 code
(This used to be commit b0510b5428)
2003-08-13 01:53:07 +00:00

19 lines
270 B
Bash

#!/bin/sh
BINDIR=$1
shift
for p in $*; do
p2=`basename $p`
if [ -f $BINDIR/$p2.old ]; then
echo Restoring $BINDIR/$p2.old
mv $BINDIR/$p2 $BINDIR/$p2.new
mv $BINDIR/$p2.old $BINDIR/$p2
rm -f $BINDIR/$p2.new
else
echo Not restoring $p
fi
done
exit 0